On Thu, 9 Jul 2020 16:05:21 -0700 (PDT)
John Maag <maag.j...@gmail.com> wrote:


> > > disks: 
> > >   - vgname: vg1 
> > >     state: present   
> >       volumes:   
> > >       - lvname: lv1 
> > >         mntp: /u01 
> > >         lvsize: 100G 
> > >         fstype: xfs 
> > >         disk: 
> > >           - device: /dev/sda 
> > >             pvname: /dev/sda1   

> Is there a way to walk *volumes* and *disk* lists?

Yes. It is. Use "include_tasks" in the loop with subelements volumes. In
the included tasks loop "item.1.disk".

-- 
Vladimir Botka

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200710014410.10067733%40gmail.com.

Attachment: pgpbKmjSPWa9L.pgp
Description: OpenPGP digital signature

Reply via email to