--- - name: create volume groups loop: "{{ lvm_groups | dict2items }}" loop_control: label: "{{ item.key }}" lvg: vg: "{{ item.key }}" vg_options: "{{ item.value.options | default(omit) }}" pvs: "{{ item.value.pvs }}" pesize: "{{ item.value.pesize | default(omit) }}" pv_options: "{{ item.value.pv_options | default(omit) }}" state: present