mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-06 23:48:12 +03:00
added support for btrfs
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ lvm_groups }}"
|
- "{{ lvm_groups }}"
|
||||||
- lvnames
|
- 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
|
- name: manage_lvm | resizing xfs
|
||||||
command: xfs_growfs -d /dev/{{ item.0.vgname }}/{{ item.1.lvname }}
|
command: xfs_growfs -d /dev/{{ item.0.vgname }}/{{ item.1.lvname }}
|
||||||
@@ -62,6 +62,13 @@
|
|||||||
- lvnames
|
- lvnames
|
||||||
when: lvm.changed and item.1.filesystem == "swap"
|
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)
|
- name: manage_lvm | unmounting filesystem(s)
|
||||||
mount:
|
mount:
|
||||||
name: "{{ item.1.mntp }}"
|
name: "{{ item.1.mntp }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user