I’m just getting started with Ansible and trying to get my first SSH connections working. When I run “ansible all -m ping” it comes back with
| FAILED => FAILED: Authentication failed.
How do I dig into the source of that failure? Can ansible find ansible.cfg? Is my config wrong?
In a bit more detail, ./ansible.cfg contains the following line:
ssh_args = -o ControlMaster=auto -l -i
running ssh with the same configuration options succeeds:
ssh -o ControlMaster=auto -l -i
I’m running CentOS6 with github-ansible. Ansible is using paramiko for comms. Paramiko is also prompting with:
paramiko: The authenticity of host can’t be established. The ssh-rsa key fingerprint is 92c509e6410d564bfee721eb8cd7cdab. Are you sure you want to continue connecting (yes/no)? and I respond with “yes\n”