Skip to content

Instantly share code, notes, and snippets.

@serialdoom
Created April 20, 2016 14:03
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 serialdoom/2605c531edca105443a7bb8bc446c97d to your computer and use it in GitHub Desktop.
Save serialdoom/2605c531edca105443a7bb8bc446c97d to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
vars:
var1: false
var2: '{{ var1 }}'
tasks:
- debug: var=var1
- debug: var=var2
PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [debug var=var1] ********************************************************
ok: [localhost] => {
"var": {
"var1": "False"
}
}
TASK: [debug var=var2] ********************************************************
ok: [localhost] => {
"var": {
"var2": "False"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment