Created
February 16, 2018 20:32
-
-
Save anonymous/48b8744dcafd8f6e6bdac3803e77aa4b to your computer and use it in GitHub Desktop.
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
[defaults] | |
stdout_callback = minimal |
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
#!/usr/bin/env ansible-playbook -vvv | |
- hosts: localhost | |
gather_facts: false | |
vars: {foo: echo THIS IS MY TEST | hexdump -C} | |
tasks: | |
- shell: {{ foo }} |
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
ansible-playbook 2.6.0 (devel ac169f5ffd) last updated 2018/02/16 09:37:00 (GMT -700) | |
config file = /Users/ingy/ansible/ansible.cfg | |
configured module search path = [u'/Users/ingy/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /Users/ingy/ansible/lib/ansible | |
executable location = /Users/ingy/ansible/bin/ansible-playbook | |
python version = 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] | |
Using /Users/ingy/ansible/ansible.cfg as config file | |
1 plays in playbook.yml | |
META: ran handlers | |
Using module file /Users/ingy/ansible/lib/ansible/modules/commands/command.py | |
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ingy | |
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0' | |
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022 `" && echo ansible-tmp-1518813138.9-13885570533022="` echo /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022 `" ) && sleep 0' | |
<127.0.0.1> PUT /Users/ingy/.ansible/tmp/ansible-local-44780R4AN17/tmpl43Uvl TO /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022/command.py | |
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022/ /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022/command.py && sleep 0' | |
<127.0.0.1> EXEC /bin/sh -c '/usr/local/opt/python/bin/python2.7 /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022/command.py && sleep 0' | |
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/ingy/.ansible/tmp/ansible-tmp-1518813138.9-13885570533022/ > /dev/null 2>&1 && sleep 0' | |
localhost | SUCCESS | rc=0 >> | |
00000000 54 48 49 53 20 49 53 20 4d 59 20 54 45 53 54 0a |THIS IS MY TEST.| | |
00000010 | |
META: ran handlers | |
META: ran handlers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment