* Fix: pvresize waiting for new collection lvg native support

This commit is contained in:
Roxyrob
2021-03-17 01:29:14 +01:00
parent 19e56ac7d8
commit 1d57a469b0
2 changed files with 20 additions and 0 deletions
+14
View File
@@ -9,6 +9,20 @@
- vg.create is defined
- vg.create|bool
### workaround: auto pvresize waiting for upgrade to new module supporting integrated pvresize
### ref: https://docs.ansible.com/ansible/3/collections/community/general/lvg_module.html
- name: create_vg | pvresize to max (implemented from ansible 2.10 and above)
shell: "pvresize {{ pv }}"
loop: "{{ vg.disks | default([]) }}"
loop_control:
loop_var: pv
changed_when: false
when:
- vg.create is defined
- vg.create|bool
- pvresize_to_max|bool
- ansible_version.full is version('2.10', '<')
- name: manage_lvm | loop over logical volume group(s) to create logical volumes
include_tasks: create_lv.yml
loop: "{{ vg.lvnames | default([]) }}"