Merge pull request #1 from olo-dw/xfs_growfs

Add xfs_growfs for xfs systemfile type.
This commit is contained in:
Larry Smith Jr
2016-09-23 16:21:29 -04:00
committed by GitHub

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"