Looping over 3 set of values and using each combination

Hi,

sorry for the title, it’s hard to describe in a short sentence.

I need to use the acl module on all combination of 3 entities, 2 etypes and 2 names (dirs).
Here is what I am doing right now (take a look at task “set user acl for cache”): https://github.com/agileaddicts/ansible-playbooks/blob/6faf3e78122b1b1d1cc1f4d66441ffbecce79e8a/roles/cllctr/tasks/main.yml

I tried using loop_together but it serves another use-case. I didn’t find any other lookup_plugin that would serve my use case. Is this something which should be solved the way I do or is there another, nicer way?

Thanks for your help.

Take care,
Sebastian

You wan the cartesian product, which did not exist until now:

https://github.com/ansible/ansible/pull/10305

Hi Brian,

awesome! I just checked out your branch locally and I am testing :slight_smile:

Sebastian