Ansible - union filter

Mar 20, 2015   #ansible 

You have a comma separated list of items, or an actual list, and you want to add some items to it only if they aren’t already in it. The easiest way is with the union filter.

In the following gist, we have a mount with some options that we want to add to others