Skip to content

Instantly share code, notes, and snippets.

@bcoca
Created June 9, 2016 19:01
Show Gist options
  • Save bcoca/1822c2581ec0b373a24eaade652df5dc to your computer and use it in GitHub Desktop.
Save bcoca/1822c2581ec0b373a24eaade652df5dc to your computer and use it in GitHub Desktop.
ansible -vvvv nyx -m ping --ssh-common-args=''
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
Using module file /home/bcoca/work/ansible-modules-core/system/ping.py
<192.168.0.4> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.0.4> SSH: EXEC ssh -C -vvv -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 192.168.0.4 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741 `" && echo ansible-tmp-1465498870.07-86731137822741="` echo $HOME/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741 `" ) && sleep 0'"'"''
<192.168.0.4> PUT /tmp/tmpfctHHb TO /home/bcoca/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741/ping.py
<192.168.0.4> SSH: EXEC sftp -b - -C -vvv -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 '[192.168.0.4]'
<192.168.0.4> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.0.4> SSH: EXEC ssh -C -vvv -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 192.168.0.4 '/bin/sh -c '"'"'chmod -R u+x /home/bcoca/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741/ && sleep 0'"'"''
<192.168.0.4> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.0.4> SSH: EXEC ssh -C -vvv -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -tt 192.168.0.4 '/bin/sh -c '"'"'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/bcoca/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741/ping.py; rm -rf "/home/bcoca/.ansible/tmp/ansible-tmp-1465498870.07-86731137822741/" > /dev/null 2>&1 && sleep 0'"'"''
nyx | SUCCESS => {
"changed": false,
"invocation": {
"module_args": {
"data": null
},
"module_name": "ping"
},
"ping": "pong"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment