-
-
Save emonty/8904e2eac6684ddd136f 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
Using /etc/ansible/ansible.cfg as config file | |
1 plays in foo.yml | |
PLAY *************************************************************************** | |
TASK [setup] ******************************************************************* | |
ESTABLISH LOCAL CONNECTION FOR USER: mordred | |
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724722.48-121037191107407 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724722.48-121037191107407 )" ) | |
localhost PUT /tmp/tmp7bxedT TO /home/mordred/.ansible/tmp/ansible-tmp-1452724722.48-121037191107407/setup | |
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/mordred/.ansible/tmp/ansible-tmp-1452724722.48-121037191107407/setup; rm -rf "/home/mordred/.ansible/tmp/ansible-tmp-1452724722.48-121037191107407/" > /dev/null 2>&1 | |
ok: [localhost] | |
TASK [test] ******************************************************************** | |
task path: /home/mordred/foo.yml:4 | |
ESTABLISH LOCAL CONNECTION FOR USER: mordred | |
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724723.6-77584448654829 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724723.6-77584448654829 )" ) | |
localhost PUT /tmp/tmpiyAdyw TO /home/mordred/.ansible/tmp/ansible-tmp-1452724723.6-77584448654829/command | |
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/mordred/.ansible/tmp/ansible-tmp-1452724723.6-77584448654829/command; rm -rf "/home/mordred/.ansible/tmp/ansible-tmp-1452724723.6-77584448654829/" > /dev/null 2>&1 | |
changed: [localhost] => {"changed": true, "cmd": "echo Hello world", "delta": "0:00:00.004892", "end": "2016-01-13 17:38:43.647966", "invocation": {"module_args": {"_raw_params": "echo Hello world", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 0, "start": "2016-01-13 17:38:43.643074", "stderr": "", "stdout": "Hello world", "stdout_lines": ["Hello world"], "warnings": []} | |
PLAY RECAP ********************************************************************* | |
localhost : ok=2 changed=1 unreachable=0 failed=0 | |
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
--- | |
- hosts: localhost | |
tasks: | |
- {name: test, shell: echo Hello world} |
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
localhost ansible_connection=local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment