Hi,
very new to Ansible, working through books
On my ansible server (a centos 7 machine) I have added root ssh key to my test machine. So I can ssh root@mint-test and that works.
When, as root, I run my playbook, I am prompted “SSH password:”. At this point I can enter anything - just enter or the wrong password or even the right password. And then ansible runs the playbook and all works as expected.
In the ansible cfg file, ask_pass is commented out. But even if I set it to False, still get problem.
What am I doing wrong?
Regards,
John
What command are you using to run ansible?
I have a root ssh key shared out...
ssh client
works without a password, as does
ansible-playbook site.yml -l client
If one works and the other doesn't I would be curious about what your command is...
Hi Adam,
I have realised my dumb mistake. I was blindly following from a book which used the -k option which is --ask-pass and that is exactly what I did. Running it without the -k then no password request. Interesting though that it ignored whatever I typed.
But many thanks for the reply, great to know that people are willing to help on the forum and that it is active.
Regards,
john
No Problem, that was why I asked what command you had been using… Yes this forum is very active.