Hi All,
I would like to be able to set a boolean to true only when two facts have certain values:
`
Hi All,
I would like to be able to set a boolean to true only when two facts have certain values:
`
Hi Willem
Instead of declaring them as vars in your play, try the set_fact module instead.
Regards
Tom
Try to just set rhel5 to '{{ ansible_os_family == "RedHat" and ansible_distribution_major_version == "5" }}'
Parser didn't complain, because you just defined a variable called "when"
Willem Bos <bos.h.willem@gmail.com> napisał:
Hi Tom/Tomasz,
Thanks for your help. I will definitely look into set_fact but went with Tomasz’s advise. I changed the playbook to :
`