Have a look at the with_subelements lookup plugin.
On 11 December 2013 09:53, Guillaume Subiron <[email protected]> wrote: > Hi, > > I'm trying to do a special kind of nesting loop, using the item of the > first loop in the second loop: > > - name: Prepare OSDs > shell: ceph-deploy osd prepare {{ item[0] }}:{{ item[1] }} > with_nested: > - groups['ceph-ODSs'] > - hostvars[item[0]]['disks'] > > I'm not sure if this is possible, but I can't find any workaround. > > -- > Guillaume Subiron > Mail - [email protected] > GPG - C7C4 455C > Jabber - [email protected] > IRC - maethor@(freenode|geeknode) > > -- > 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. > -- 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.
