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!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.