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 }}"
|
vg: "{{ item.group }}"
|
||||||
pvs: "{{ item.disks | join(',') }}"
|
pvs: "{{ item.disks | join(',') }}"
|
||||||
pesize: "4"
|
pesize: "4"
|
||||||
|
pvresize: yes
|
||||||
loop: "{{ lvm_volumes }}"
|
loop: "{{ lvm_volumes }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "name: {{ item.group }}, disks: {{ item.disks | join(',') }}"
|
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
|
- name: Create logical volume
|
||||||
lvol:
|
lvol:
|
||||||
vg: "{{ item.group }}"
|
vg: "{{ item.group }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user