Skip to content

Instantly share code, notes, and snippets.

@willthames
Last active March 10, 2017 01:09
Show Gist options
  • Save willthames/1ae3590673a9c25f597929b5bfbb321b to your computer and use it in GitHub Desktop.
Save willthames/1ae3590673a9c25f597929b5bfbb321b to your computer and use it in GitHub Desktop.
$ 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
- hosts: localhost
connection: local
tasks:
- command: echo hello world
vars:
ansible_python_interpreter: "{{ '/usr/bin/python' }}"
delegate_to: "{{ remote_host }}"
testlocal ansible_connection=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment