Files
ansible-manage-lvm/tasks/create_vg.yml
T
Charlie Mordant b288695b9a lint
2020-06-07 17:25:33 +02:00

17 lines
405 B
YAML

---
- name: create_vg | creating new LVM volume group(s)
lvg:
vg: "{{ vg.vgname }}"
pvs: "{{ vg.disks | join(',') }}"
state: present
become: true
when:
- vg.create is defined
- vg.create|bool
- name: manage_lvm | loop over logical volume group(s) to create logical volumes
include_tasks: create_lv.yml
loop: "{{ vg.lvnames | default([]) }}"
loop_control:
loop_var: lv