refactor: add pvresize to lvg and remove workaround
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
510dab5dfd
commit
07e46fc755
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user