I met one configuration problem when coding ansible playbook for ssh private key file.
As we know, we can define combination with host server, ip & related ssh p
I'm using the following configuration:
#site.yml: - name: Example play hosts: all remote_user: ansible become: yes become_method: sudo vars: ansible_ssh_private_key_file: "/home/ansible/.ssh/id_rsa"