It worked exactly as you predicted, disabling pipelining resulted in success, enabling pipelining caused failure:
sinuid06-> ANSIBLE_SSH_PIPELINING=0 ansible sinuid02 -bK -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 '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397 `" && echo ansible-tmp-1501685240.38-249800991666397="` echo $HOME/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397 `" ) && sleep 0'"'"'' <sinuid02> PUT /tmp/tmpSBgbKg TO /home/pdxmft/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397/ping.py <sinuid02> SSH: EXEC sftp -b - -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]' <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 '"'"'chmod u+x /home/pdxmft/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397/ /home/pdxmft/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397/ping.py && sleep 0'"'"'' <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 -tt sinuid02 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=tlsiocbaqshesaoykfdbxhrvmgykhppm] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-tlsiocbaqshesaoykfdbxhrvmgykhppm; LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /home/pdxmft/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397/ping.py; rm -rf "/home/pdxmft/.ansible/tmp/ansible-tmp-1501685240.38-249800991666397/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' sinuid02 | SUCCESS => { "changed": false, "invocation": { "module_args": { "data": null }, "module_name": "ping" }, "ping": "pong" } sinuid06-> ANSIBLE_SSH_PIPELINING=1 ansible sinuid02 -bK -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=mqoctsbwdszgvkvzodlrvtvojlkrgpdo] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-mqoctsbwdszgvkvzodlrvtvojlkrgpdo; LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"'' sinuid02 | FAILED! => { "failed": true, "msg": "Incorrect sudo password" } I tried ensuring that 'requiretty' was disabled in my sudoers file, but that did not change anything. I guess as a work-around I can instruct everyone to disable pipelining when working with HP-UX, but that is going to be cumbersome and and point of constant error when someone forgets. -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/265bc04a-242f-476a-b346-9739b2ff21f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.