Using ANSIBLE_KEEP_REMOTE_FILES also disables ssh 'pipelining', so I
suspect just disabling pipelining may may also work.
See
http://docs.ansible.com/ansible/latest/intro_configuration.html#pipelining

Try:


    $ ANSIBLE_SSH_PIPELINING=0 ansible -vvvvv sinuid02 -sK -m command -a id

And then:

   $ ANSIBLE_SSH_PIPELINING=1 ansible -vvvvv sinuid02 -sK -m command -a id


If ANSIBLE_SSH_PIPELINING=0 works and ANSIBLE_SSH_PIPELINING=1 fails, that
narrows the problem down.



On Tue, Aug 1, 2017 at 12:47 PM, <mark.to...@dsv.com> wrote:

>
>     The debug output from when I ANSIBLE_KEEP_REMOTE_FILES=1 is
> significantly different from when I do not set that:
>
> sinuid06-> ANSIBLE_KEEP_REMOTE_FILES=1 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 '"'"'( umask 77 &&
> mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1501605634.85-254507764792685
> `" && echo ansible-tmp-1501605634.85-254507764792685="` echo
> $HOME/.ansible/tmp/ansible-tmp-1501605634.85-254507764792685 `" ) &&
> sleep 0'"'"''
> <sinuid02> PUT /tmp/tmpTO4oao TO /home/pdxmft/.ansible/tmp/
> ansible-tmp-1501605634.85-254507764792685/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-1501605634.85-254507764792685/
> /home/pdxmft/.ansible/tmp/ansible-tmp-1501605634.85-254507764792685/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=rfgzwshkypvukgrzrjwgjayzwslvshum] password: "
> -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-
> rfgzwshkypvukgrzrjwgjayzwslvshum; LANG=C LC_ALL=C LC_MESSAGES=C
> /usr/bin/python /home/pdxmft/.ansible/tmp/ansible-tmp-1501605634.85-
> 254507764792685/ping.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
> sinuid02 | SUCCESS => {
>     "changed": false,
>     "invocation": {
>         "module_args": {
>             "data": null
>         },
>         "module_name": "ping"
>     },
>     "ping": "pong"
> }
>
>     Specifically, when I do not set the variable, I do not see a call to
> sftp to copy the ping.py file to the target server, but I do see that when
> I set the variable.  I do not know enough about how Ansible operates to
> know if that is significant or not.
>     -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/8277937d-1ea8-487d-ad33-bd0916b5ba52%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/8277937d-1ea8-487d-ad33-bd0916b5ba52%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAOJNLf_4yBvuj%2BSyQKBx-KSqE1yZKndYvtzZR2zCCTPB%3DOOixQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to