summaryrefslogtreecommitdiff
path: root/roles/storage/lvm/groups/tasks/main.yml
blob: ddcd49c71c4a742710e2f9874249a68dd8c1bbe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
---
- 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