Skip to content

Instantly share code, notes, and snippets.

@skyl
Last active December 25, 2015 20:09
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 skyl/7033163 to your computer and use it in GitHub Desktop.
Save skyl/7033163 to your computer and use it in GitHub Desktop.
include+when bug in ansible?
% ansible-playbook pb.yml -i h -e "BOOL=that"
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [wtf] *******************************************************************
ok: [localhost] => {
"msg": "that"
}
PLAY RECAP ********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
% ansible --version
ansible 1.4
- hosts: all
tasks:
- name: wtf
debug: msg={{ BOOL }}
- include: one.yml
when: BOOL == "this"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment