Last active
December 25, 2015 20:09
-
-
Save skyl/7033163 to your computer and use it in GitHub Desktop.
include+when bug in ansible?
This file contains 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 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 |
This file contains 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: all | |
tasks: | |
- name: wtf | |
debug: msg={{ BOOL }} |
This file contains 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
- include: one.yml | |
when: BOOL == "this" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment