Created
September 30, 2017 13:04
-
-
Save PaulMougel/a00997b4ac9757c653674d65e6b6c1a4 to your computer and use it in GitHub Desktop.
Ansible pipelining issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git checkout stable-2.3 | |
[...] | |
$ source hacking/env-setup | |
[...] | |
$ time ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
No config file found; using defaults | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<my-host.com> (0, '/home/pmougel\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159 `" && echo ansible-tmp-1506776479.34-73503697746159="` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159 `" ) && sleep 0'"'"'' | |
<my-host.com> (0, 'ansible-tmp-1506776479.34-73503697746159=/home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159\n', '') | |
<my-host.com> PUT /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpAbmMtD TO /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/command.py | |
<my-host.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc '[my-host.com]' | |
<my-host.com> (0, 'sftp> put /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpAbmMtD /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/command.py\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'chmod u+x /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/ /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/command.py && sleep 0'"'"'' | |
<my-host.com> (0, '', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc -tt my-host.com '/bin/sh -c '"'"'/usr/bin/python /home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/command.py; rm -rf "/home/pmougel/.ansible/tmp/ansible-tmp-1506776479.34-73503697746159/" > /dev/null 2>&1 && sleep 0'"'"'' | |
<my-host.com> (0, '\r\n{"changed": true, "end": "2017-09-30 15:01:21.119088", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 15:01:21.109807", "stderr": "", "delta": "0:00:00.009281", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null}}, "warnings": []}\r\n', 'Shared connection to my-host.com closed.\r\n') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host -m shell -a 0,84s user 0,26s system 40% cpu 2,697 total | |
$ time ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
No config file found; using defaults | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"'' | |
<my-host.com> (0, '\n{"changed": true, "end": "2017-09-30 15:01:49.341969", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 15:01:49.334115", "stderr": "", "delta": "0:00:00.007854", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null}}, "warnings": []}\n', '') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host -m shell -a 0,46s user 0,16s system 70% cpu 0,874 total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git checkout stable-2.4 | |
[...] | |
$ source hacking/env-setup | |
[...] | |
$ time ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
ansible 2.4.1.0 (stable-2.4 6945f6d3b2) last updated 2017/09/30 14:39:20 (GMT +200) | |
config file = None | |
configured module search path = [u'/Users/pmougel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /private/tmp/ansible/lib/ansible | |
executable location = /private/tmp/ansible/bin/ansible | |
python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] | |
No config file found; using defaults | |
Parsed /private/tmp/my-host inventory source with ini plugin | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<my-host.com> (0, '/home/pmougel\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285 `" && echo ansible-tmp-1506776333.29-142316234918285="` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285 `" ) && sleep 0'"'"'' | |
<my-host.com> (0, 'ansible-tmp-1506776333.29-142316234918285=/home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285\n', '') | |
<my-host.com> PUT /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpZytdhe TO /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/command.py | |
<my-host.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc '[my-host.com]' | |
<my-host.com> (0, 'sftp> put /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpZytdhe /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/command.py\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'chmod u+x /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/ /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/command.py && sleep 0'"'"'' | |
<my-host.com> (0, '', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc -tt my-host.com '/bin/sh -c '"'"'/usr/bin/python /home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/command.py; rm -rf "/home/pmougel/.ansible/tmp/ansible-tmp-1506776333.29-142316234918285/" > /dev/null 2>&1 && sleep 0'"'"'' | |
<my-host.com> (0, '\r\n{"changed": true, "end": "2017-09-30 14:58:54.873479", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 14:58:54.864370", "stderr": "", "delta": "0:00:00.009109", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'Shared connection to my-host.com closed.\r\n') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host -m shell -a 1,15s user 0,21s system 48% cpu 2,792 total | |
$ time ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
ansible 2.4.1.0 (stable-2.4 6945f6d3b2) last updated 2017/09/30 14:39:20 (GMT +200) | |
config file = None | |
configured module search path = [u'/Users/pmougel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /private/tmp/ansible/lib/ansible | |
executable location = /private/tmp/ansible/bin/ansible | |
python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] | |
No config file found; using defaults | |
Parsed /private/tmp/my-host inventory source with ini plugin | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<my-host.com> (0, '/home/pmougel\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960 `" && echo ansible-tmp-1506776375.71-271535664283960="` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960 `" ) && sleep 0'"'"'' | |
<my-host.com> (0, 'ansible-tmp-1506776375.71-271535664283960=/home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960\n', '') | |
<my-host.com> PUT /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpGiUupG TO /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/command.py | |
<my-host.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc '[my-host.com]' | |
<my-host.com> (0, 'sftp> put /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpGiUupG /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/command.py\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'chmod u+x /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/ /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/command.py && sleep 0'"'"'' | |
<my-host.com> (0, '', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc -tt my-host.com '/bin/sh -c '"'"'/usr/bin/python /home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/command.py; rm -rf "/home/pmougel/.ansible/tmp/ansible-tmp-1506776375.71-271535664283960/" > /dev/null 2>&1 && sleep 0'"'"'' | |
<my-host.com> (0, '\r\n{"changed": true, "end": "2017-09-30 14:59:36.669563", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 14:59:36.663276", "stderr": "", "delta": "0:00:00.006287", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'Shared connection to my-host.com closed.\r\n') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host -m shell -a 1,06s user 0,19s system 60% cpu 2,081 total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git checkout devel | |
[...] | |
$ source hacking/env-setup | |
[...] | |
$ time ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
ansible 2.5.0 (devel ac9278ff0f) last updated 2017/09/30 14:32:00 (GMT +200) | |
config file = None | |
configured module search path = [u'/Users/pmougel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /private/tmp/ansible/lib/ansible | |
executable location = /private/tmp/ansible/bin/ansible | |
python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] | |
No config file found; using defaults | |
Parsed /private/tmp/my-host inventory source with ini plugin | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<my-host.com> (0, '/home/pmougel\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875 `" && echo ansible-tmp-1506776555.51-185465882056875="` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875 `" ) && sleep 0'"'"'' | |
<my-host.com> (0, 'ansible-tmp-1506776555.51-185465882056875=/home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875\n', '') | |
<my-host.com> PUT /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpocJy3i TO /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/command.py | |
<my-host.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc '[my-host.com]' | |
<my-host.com> (0, 'sftp> put /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpocJy3i /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/command.py\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'chmod u+x /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/ /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/command.py && sleep 0'"'"'' | |
<my-host.com> (0, '', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc -tt my-host.com '/bin/sh -c '"'"'/usr/bin/python /home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/command.py; rm -rf "/home/pmougel/.ansible/tmp/ansible-tmp-1506776555.51-185465882056875/" > /dev/null 2>&1 && sleep 0'"'"'' | |
<my-host.com> (0, '\r\n{"changed": true, "end": "2017-09-30 15:02:36.523764", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 15:02:36.512339", "stderr": "", "delta": "0:00:00.011425", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'Shared connection to my-host.com closed.\r\n') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=False ansible -vvv -i /tmp/my-host -m shell -a 1,28s user 0,25s system 63% cpu 2,427 total | |
$ time ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host my-host.com -m shell -a 'echo ok' | |
ansible 2.5.0 (devel ac9278ff0f) last updated 2017/09/30 14:32:00 (GMT +200) | |
config file = None | |
configured module search path = [u'/Users/pmougel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /private/tmp/ansible/lib/ansible | |
executable location = /private/tmp/ansible/bin/ansible | |
python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] | |
No config file found; using defaults | |
Parsed /private/tmp/my-host inventory source with ini plugin | |
META: ran handlers | |
Using module file /private/tmp/ansible/lib/ansible/modules/commands/command.py | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<my-host.com> (0, '/home/pmougel\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603 `" && echo ansible-tmp-1506776588.88-61000279733603="` echo /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603 `" ) && sleep 0'"'"'' | |
<my-host.com> (0, 'ansible-tmp-1506776588.88-61000279733603=/home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603\n', '') | |
<my-host.com> PUT /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpY6PETl TO /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/command.py | |
<my-host.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc '[my-host.com]' | |
<my-host.com> (0, 'sftp> put /var/folders/5z/wws8___d0yx0ztkhxpcdq60r0000gn/T/tmpY6PETl /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/command.py\n', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc my-host.com '/bin/sh -c '"'"'chmod u+x /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/ /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/command.py && sleep 0'"'"'' | |
<my-host.com> (0, '', '') | |
<my-host.com> ESTABLISH SSH CONNECTION FOR USER: None | |
<my-host.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/pmougel/.ansible/cp/e4c7a8aacc -tt my-host.com '/bin/sh -c '"'"'/usr/bin/python /home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/command.py; rm -rf "/home/pmougel/.ansible/tmp/ansible-tmp-1506776588.88-61000279733603/" > /dev/null 2>&1 && sleep 0'"'"'' | |
<my-host.com> (0, '\r\n{"changed": true, "end": "2017-09-30 15:03:09.880064", "stdout": "ok", "cmd": "echo ok", "rc": 0, "start": "2017-09-30 15:03:09.866446", "stderr": "", "delta": "0:00:00.013618", "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": "echo ok", "removes": null, "creates": null, "chdir": null, "stdin": null}}}\r\n', 'Shared connection to my-host.com closed.\r\n') | |
my-host.com | SUCCESS | rc=0 >> | |
ok | |
META: ran handlers | |
META: ran handlers | |
ANSIBLE_SSH_PIPELINING=True ansible -vvv -i /tmp/my-host -m shell -a 1,06s user 0,20s system 59% cpu 2,132 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment