mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-08 00:18:15 +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:
|
with_subelements:
|
||||||
- lvm_groups
|
- lvm_groups
|
||||||
- lvnames
|
- 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
|
- name: manage_lvm | resizing swap
|
||||||
shell: "swapoff -a && mkswap /dev/{{ item.0.vgname }}/{{ item.1.lvname }} && swapon -va"
|
shell: "swapoff -a && mkswap /dev/{{ item.0.vgname }}/{{ item.1.lvname }} && swapon -va"
|
||||||
|
|||||||
Reference in New Issue
Block a user