Hi
I have a usecase in which I want to pass some parameters to a module only
if I have a variable defined with value for them. If I don't, I want the
module to use its default value for these parameters. In ansible 1.5.5 (I
know, old as hell), I could do this:
module: {% if value is defined %}param={{value}}{% endif %}
However later versions of ansible seem to have removed it due to security
concerns (which I don't understand, but that's a different topic :) ). How
should I go about doing that in Ansible 1.7? Do I have to keep my own
default values?
Thanks
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8aa00f58-62f8-4bc4-a243-306dcaebbefc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.