Last active
March 10, 2017 01:09
-
-
Save willthames/1ae3590673a9c25f597929b5bfbb321b to your computer and use it in GitHub Desktop.
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
$ ansible-playbook playbook.yml -i testlocal -e remote_host=testlocal | |
PLAY [localhost] *************************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [localhost] | |
TASK [command] ***************************************************************** | |
fatal: [localhost -> testlocal]: FAILED! => {"changed": false, "failed": true, "module_stderr": "/bin/sh: {{: command not found\n", "module_stdout": "", "msg": "MODULE FAILURE"} | |
to retry, use: --limit @/home/will/tmp/ansible/playbook.retry | |
PLAY RECAP ********************************************************************* | |
localhost : ok=1 changed=0 unreachable=0 failed=1 |
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
- hosts: localhost | |
connection: local | |
tasks: | |
- command: echo hello world | |
vars: | |
ansible_python_interpreter: "{{ '/usr/bin/python' }}" | |
delegate_to: "{{ remote_host }}" |
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
testlocal ansible_connection=local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment