Merge pull request #7 from StefanHeimberg/feature/btrfs_support

added support for btrfs
This commit is contained in:
Larry Smith Jr
2017-04-05 19:38:23 -04:00
committed by GitHub

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 }}"