On 31.07.2018 23:23, Ramu wrote:
Kai,
Yes. I logged in with correct user. But it's copy paste error.
Here is the verbose output.
Unfortunately it didn't give any more information.
Sshpass just look for "assword:" do determine when it should provide the
password for ssh.
I thought that Ansible did that for su prompt as well, but I was wrong
after looking at source code.
It has support for a bunch of languages but the prompt need to be
"<some_word>'s password" or "password" for English and it's case
insensitive.
So your prompt "Enter login password:" will not work.
There is no way of configuring this, but patching Ansible to make it
work isn't hard, but then you would need to maintain your own Ansible
version.
--
Kai Stian Olstad
--
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/c04fbe7dbc1e8e9ddabccc451c4f7824%40olstad.com.
For more options, visit https://groups.google.com/d/optout.