Re: [ansible-project] How to declare a list of lists of lists

2020-07-09 Thread Vladimir Botka
> On Thu, 9 Jul 2020 16:05:21 -0700 (PDT) > John Maag wrote: > > Is there a way to walk *volumes* and *disk* lists? Try this loop - debug: msg: "{{ outer_item.0.vgname }} {{ outer_item.1.lvname }}" loop: "{{ lookup('subelements', disks, 'volumes') }}" loop_control:

Re: [ansible-project] How to declare a list of lists of lists

2020-07-09 Thread Vladimir Botka
On Thu, 9 Jul 2020 16:05:21 -0700 (PDT) John Maag wrote: > > > disks: > > > - vgname: vg1 > > > state: present > > volumes: > > > - lvname: lv1 > > > mntp: /u01 > > > lvsize: 100G > > > fstype: xfs > > > disk: > > > -

Re: [ansible-project] How to declare a list of lists of lists

2020-07-09 Thread John Maag
Is there a way to walk *volumes* and *disk* lists? I can only find examples of walking *disks* and *volumes* with the subelements construct. Sorry there is both a disk and disks list construct. On Thursday, July 9, 2020 at 5:15:47 PM UTC-5, Vladimir Botka wrote: > > > > > > Something like

Re: [ansible-project] How to declare a list of lists of lists

2020-07-09 Thread Vladimir Botka
On Thu, 9 Jul 2020 13:10:44 -0700 (PDT) John Maag wrote: > - For each volume group there will be an attribute name and an attribute > state > - Under each volume group is a list of one or more volumes. > - For each volume, there are attributes name, > size, file system type, and mount point

[ansible-project] How to declare a list of lists of lists

2020-07-09 Thread John Maag
I need to set up a list of volume groups. for each volume group there will be an attribute name and an attribute state. under each volume group is a list of one or more volumes. For each volume, there are attributes name, size, file system type, and mount point. Under each volume is a list of