On 21 November 2013 09:27, Yoann DAVID <[email protected]> wrote:

> How can I do nested loop ?
>
> I have n users et for each user m groups, the with_items synthax cannot be
> used, this is why I've made an include/with_items (first loop) than in my
> included playbook a with_item on a task (second loop).
>

There are a couple of lookup plugins that allow you to do just that,
with_together and with_nested, the latter should be what you seek I think.

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to