Skip to content

Instantly share code, notes, and snippets.

Last active December 25, 2015 20:09
What would you like to do?
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
- 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