added support for btrfs

This commit is contained in:
Stefan Heimberg
2017-04-06 00:25:55 +02:00
committed by GitHub
parent 172e6e3863
commit f2d06d0d46
+8 -1
View File
@@ -46,7 +46,7 @@
with_subelements:
- "{{ lvm_groups }}"
- lvnames
when: lvm.changed and item.1.filesystem != "swap" and item.1.filesystem != "xfs"
when: lvm.changed and item.1.filesystem != "swap" and item.1.filesystem != "xfs" and item.1.filesystem != "btrfs"
- name: manage_lvm | resizing xfs
command: xfs_growfs -d /dev/{{ item.0.vgname }}/{{ item.1.lvname }}
@@ -62,6 +62,13 @@
- lvnames
when: lvm.changed and item.1.filesystem == "swap"
- name: manage_lvm | resizing btrfs
shell: "btrfs filesystem resize max {{ item.1.mntp }}""
with_subelements:
- "{{ lvm_groups }}"
- lvnames
when: lvm.changed and item.1.filesystem == "btrfs"
- name: manage_lvm | unmounting filesystem(s)
mount:
name: "{{ item.1.mntp }}"