refactor: add pvresize to lvg and remove workaround
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-06-03 21:48:39 +02:00
parent 510dab5dfd
commit 07e46fc755
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,18 +11,11 @@
vg: "{{ item.group }}"
pvs: "{{ item.disks | join(',') }}"
pesize: "4"
pvresize: yes
loop: "{{ lvm_volumes }}"
loop_control:
label: "name: {{ item.group }}, disks: {{ item.disks | join(',') }}"
# workaround: https://github.com/ansible/ansible/pull/52890
- name: Resize physical volume
command: "pvresize {{ item.disks | join(' ') }}"
changed_when: False
with_items: "{{ lvm_volumes }}"
loop_control:
label: "disks: {{ item.disks | join(',') }}"
- name: Create logical volume
lvol:
vg: "{{ item.group }}"