This is a real blocker.    SSH works but Ansible does not. 
 
 
In the debug output I see  ''PasswordAuthentication=no' and that looks 
wrong.   
 
Any ideas?   
 
Thanks
 
-------------
 
$: ssh -t venus "mkdir /tmp/core; cd /tcp; sudo mv /tmp/core ." 2>/dev/null

Password: <pwd> 

No problem.  

--------------------------------------

$:  ansible venus -vvvv -i hosts -m shell -a "mkdir /tmp/core; cd /tcp; 
sudo mv /tmp/core ." --sudo -K

sudo password: <pwd>

<venus> ESTABLISH CONNECTION FOR USER: user

<venus> REMOTE_MODULE command mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . 
#USE_SHELL

<venus> EXEC ['ssh', '-C', '-vvv', '-o', 'Port=22', '-o', 
'KbdInteractiveAuthentication=no', '-o', 
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', 
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'venus', 
u'/bin/sh -c "sudo -k && sudo -H -S -p \\"[sudo via ansible, 
key=rcqlyohwnuyvwjzysaxnqqcdokwhgfok] password: \\" -u root /bin/bash -c 
\'echo SUDO-SUCCESS-rcqlyohwnuyvwjzysaxnqqcdokwhgfok; LC_CTYPE=C LANG=C 
/usr/bin/python\'"']

venus | FAILED => ssh connection error waiting for sudo or su password 
prompt

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c1bcc046-b57a-4f98-9d2a-a64565915b8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to