Skip to content

Instantly share code, notes, and snippets.

@ahamilton55
Created June 10, 2015 22:05
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 ahamilton55/ddab2b0c515a780d90fb to your computer and use it in GitHub Desktop.
Save ahamilton55/ddab2b0c515a780d90fb to your computer and use it in GitHub Desktop.
± % ansible-playbook -i deploy_conf/localhost test.yml
PLAY: ***************************************************************************
TASK [setup] ********************************************************************
ok: [localhost]
TASK [debug msg=Hello] **********************************************************
fatal: [localhost]: FAILED! => {"failed": true, "stdout": ""}
NO MORE HOSTS LEFT **************************************************************
PLAY RECAP **********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
---
- hosts: localhost
connection: local
vars:
my_var: { "something": "{{ truth3 }}" }
tasks:
- debug: msg="Hello"
when: truth3 is defined and my_var is defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment