Skip to content

Instantly share code, notes, and snippets.

@skyl skyl/command line
Last active Dec 25, 2015

Embed
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
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
You can’t perform that action at this time.