You can try this:
list1|union(list2)
it will output a list with the unique elements from both lists.
--
Brian Coca
--
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
I think the short answer is that you don't. Ansible has a setting that will
allow you to merge dictionaries together, but not lists. This setting is
global and applies to all dicts. I'm guessing it doesn't merge lists
because there's no way to indicate if your intent is to merge the list or