Hello all - This question is for Ansible 1.2 only (required).
Can I do an include with only_if: is_set(${some_var})?
The idea is that if a top-level var is set then the playbook will be included and executed, and otherwise excluded. Any other way to accomplish the same thing?
Or a template for how to install or upgrade some component only if it is missing or the installed version is older (and the only way to check is --version for the component)?
Also as an aside, I see in the docs that “when” is the new syntax … what version was that introduced and will only_if continue to work after Ansbile 1.2?
Thanks in advance!