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 one or more disks. for each disk there are attributes bdevice and cdevice to indicate /dev/sda or /dev/sda1.
Something like this: disks: - vgname: vg1 state: present - lvname: lv1 mntp: /u01 lvsize: 100G fstype: xfs disk: - {device: /dev/sda, pvname: /dev/sda1} but this doesn't work. Lastly, I would like a technique to know how many elements of disks there are because if there is only one disk I do not want to use lvm. -- 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/8822f8aa-aac9-477c-8279-82256d85b97co%40googlegroups.com.