-vvvv did not show anything that was helpful: sinuid06-> ansible sinuid02 -sK -m ping -vvvv Using /InfraRepo/Ansible/config/ansible.cfg as config file SUDO password: Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/system/ping.py <sinuid02> ESTABLISH SSH CONNECTION FOR USER: None <sinuid02> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/pdxmft/.ansible/cp/ansible-ssh-%h-%p-%r sinuid02 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=wjfyztinvbxyowftkcxbdswpcgknzxpc] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-wjfyztinvbxyowftkcxbdswpcgknzxpc; LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"'' sinuid02 | FAILED! => { "failed": true, "msg": "Incorrect sudo password" }
But what did make a difference was setting ANSIBLE_KEEP_REMOTE_FILES=1: sinuid06-> ANSIBLE_KEEP_REMOTE_FILES=1 ansible sinuid02 -sK -m command -a id SUDO password: sinuid02 | SUCCESS | rc=0 >> uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),103(hpvmsys) So somehow forcing the remote system to save the module files made it work. This is very puzzling. -Mark -- 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/97d85562-2dc9-4fb8-9c24-117ef99d97ca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.