Re: [ansible-project] Re: How to define host var and append values to it from task

2015-11-20 Thread Brian Coca
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

[ansible-project] Re: How to define host var and append values to it from task

2015-11-19 Thread Mike Biancaniello
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