mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-02-04 08:49:13 +03:00
Merge pull request #1 from olo-dw/xfs_growfs
Add xfs_growfs for xfs systemfile type.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user