Last active
March 28, 2016 19:55
-
-
Save dagwieers/5994177 to your computer and use it in GitHub Desktop.
Testing ansible_connection=local
This file contains hidden or 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
[dag@moria ~]$ cat hosts | |
localhost ansible_connection=local | |
[dag@moria ~]$ ansible -i hosts localhost -m ping | |
localhost | success >> { | |
"changed": false, | |
"ping": "pong" | |
} | |
[dag@moria ~]$ ansible -vv -i hosts localhost -m ping | |
<localhost> REMOTE_MODULE ping | |
localhost | success >> { | |
"changed": false, | |
"ping": "pong" | |
} | |
[dag@moria ~]$ ansible -vvv -i hosts localhost -m ping | |
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-1373806456.14-199309016656349 && chmod a+rx $HOME/.ansible/tmp/ansible-1373806456.14-199309016656349 && echo $HOME/.ansible/tmp/ansible-1373806456.14-199309016656349'] | |
<localhost> REMOTE_MODULE ping | |
<localhost> PUT /tmp/tmppLKHta TO /home/dag/.ansible/tmp/ansible-1373806456.14-199309016656349/ping | |
<localhost> EXEC ['/bin/sh', '-c', '/usr/bin/python /home/dag/.ansible/tmp/ansible-1373806456.14-199309016656349/ping; rm -rf /home/dag/.ansible/tmp/ansible-1373806456.14-199309016656349/ >/dev/null 2>&1'] | |
localhost | success >> { | |
"changed": false, | |
"ping": "pong" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment