Seems like feature was fixed/added between v0.9 and 1.7. (0.9 is what apt-get still provides for Ubunutu 12.04 LTS). Switching to the git version solved this.
- Stuart On Tuesday, May 6, 2014 6:22:13 PM UTC-7, Stuart Reynolds wrote: > > I can call: > > ansible all -m ping -i DevHosts --user=ubuntu --private-key=../DevMongo. > pem > > > with DevHosts: > > [mongo] > 1.2.3.4 > > and ansible will correctly connect to the host. But if I try and store > these parameters in an inventory: (as suggested here > <http://docs.ansible.com/intro_inventory.html> ) > > [mongo] > 1.2.3.4 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=../DevMongo. > pem > > ansible all -m ping -i DevHosts > > > ... gives me: 1.2.3.4 | FAILED => FAILED: No authentication methods > available. > > Are --private-key and ansible_ssh_private_key_file related? What am I > missing here? > > Cheers > - Stuart > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f6548bc9-4870-4c30-b1f7-78d7171a7680%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
