nooBQ: How do I diagnose SSH failures

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”

Resolved: I found the remote_user config option and moved that parameter out of ssh_args.

The stock ansible config (which gets layed down in most distributions in /etc/ansible/ansible.cfg) has the following value:

ssh_args = -o ControlMaster=auto -o ControlPersist=60s

So I’m guessing perhaps your configuration was altered.