Hi!
With simple variables it is possible to omit module's prarameter if var is
undefined, like so:
parameter: {{ variable | default (omit) }}
But in this situation:
parameter: {{ list1 | difference(list2) }}
How do I make a module work regardless of whether list1 or list2 is defined
or not. (omit filter, or omit var altogether)?
--
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/86b11693-aeac-4e24-bece-c22262b3e741%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.