Skip to content

Instantly share code, notes, and snippets.

@emonty
Created January 13, 2016 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emonty/091758aec787111c6fdf to your computer and use it in GitHub Desktop.
Save emonty/091758aec787111c6fdf to your computer and use it in GitHub Desktop.
Using /etc/ansible/ansible.cfg as config file
merp
1 plays in foo.yml
ESTABLISH LOCAL CONNECTION FOR USER: mordred
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724598.68-59130146584838 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724598.68-59130146584838 )" )
localhost PUT /tmp/tmpIznvo1 TO /home/mordred/.ansible/tmp/ansible-tmp-1452724598.68-59130146584838/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-1452724598.68-59130146584838/setup; rm -rf "/home/mordred/.ansible/tmp/ansible-tmp-1452724598.68-59130146584838/" > /dev/null 2>&1
Jan 13 2016 17:36:39 - OK - omitted
ESTABLISH LOCAL CONNECTION FOR USER: mordred
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724599.8-203503564687209 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1452724599.8-203503564687209 )" )
localhost PUT /tmp/tmpyhKCxH TO /home/mordred/.ansible/tmp/ansible-tmp-1452724599.8-203503564687209/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-1452724599.8-203503564687209/command; rm -rf "/home/mordred/.ansible/tmp/ansible-tmp-1452724599.8-203503564687209/" > /dev/null 2>&1
Jan 13 2016 17:36:39 - OK - {"module_name": "command", "module_args": {"creates": null, "executable": null, "chdir": null, "_raw_params": "echo Hello world", "removes": null, "warn": true, "_uses_shell": true}} => {"changed": true, "end": "2016-01-13 17:36:39.851362", "_ansible_no_log": false, "stdout": "Hello world", "cmd": "echo Hello world", "rc": 0, "start": "2016-01-13 17:36:39.846443", "stderr": "", "delta": "0:00:00.004919", "stdout_lines": ["Hello world"], "warnings": []}
---
- hosts: localhost
tasks:
- {name: test, shell: echo Hello world}
localhost ansible_connection=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment