1. to get ssh keys to work, how about removing the --ask-pass option. Then review the logs on both client and server, it should not say "Accepted password for USER", since it's with keys rather than passwords.
2. going back to passwords again: have you already run "yum install sshpass"? that is required. On Monday, July 4, 2016 at 11:12:39 AM UTC+2, Hornbachner Simon wrote: > > Ahoy Sam, > thanks for the answer. > > > 1. did you try the --ask-pass command line option? > Sorry, the command wasn't wrapped ideally, so you probably missed it: I > am using --ask-pass. See the full command again below. > > ansible -i ansible-hosts localhost -m ping -vvvv --ask-pass > > > 2. ssh keys are preferable to passwords, configure those first > > instead. http://docs.ansible.com/ansible/intro_adhoc.html > I experience the same behavior when using keys. If you have any idea as > to what might cause this, I'd be happy to supply more information. > > Any help would be highly appreciated. > > All the best, Simon -- 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/8fa5bb61-d129-4d15-bfb6-62ae689d7103%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
