Ansible 1.4 just released add the ability to do what I want : 
http://www.ansibleworks.com/docs/playbooks_loops.html#looping-over-subelements

Vive Ansible !!


Le jeudi 21 novembre 2013 09:33:11 UTC+1, Serge van Ginderachter a écrit :
>
>
> On 21 November 2013 09:27, Yoann DAVID <[email protected] 
> <javascript:>>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