Add xfs_growfs for xfs systemfile type.

This commit is contained in:
Olivier LOCARD
2016-09-23 16:21:07 +02:00
parent bb87fa8dbf
commit ca1535d774
+8 -1
View File
@@ -45,7 +45,14 @@
with_subelements:
- lvm_groups
- lvnames
when: lvm.changed and item.1.filesystem != "swap"
when: lvm.changed and item.1.filesystem != "swap" and item.1.filesystem != "xfs"
- name: manage_lvm | resizing xfs
command: xfs_growfs -d /dev/{{ item.0.vgname }}/{{ item.1.lvname }}
with_subelements:
- lvm_groups
- lvnames
when: lvm.changed and item.1.filesystem == "xfs"
- name: manage_lvm | resizing swap
shell: "swapoff -a && mkswap /dev/{{ item.0.vgname }}/{{ item.1.lvname }} && swapon -va"