mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-02-04 08:49:13 +03:00
Adding SWAP FileSystem Exception
Adding Check for SWAP Filesystem if defined skip 1. SKIP New Filesystem Creation 2. SKIP mountpoint check
This commit is contained in:
committed by
Larry Smith Jr
parent
bd866078da
commit
8957630c04
@@ -48,7 +48,8 @@
|
||||
(item[1]['create'] is defined and
|
||||
item[1]['create']) and
|
||||
(item[1]['filesystem'] is defined and
|
||||
item[1]['filesystem'] != 'None'))
|
||||
item[1]['filesystem'] != 'None') and
|
||||
item[1]['filesystem'] != "swap")
|
||||
|
||||
- name: manage_lvm | mounting new filesystem(s)
|
||||
mount:
|
||||
@@ -132,7 +133,8 @@
|
||||
(item[1] is defined and
|
||||
item[1] != 'None') and
|
||||
(item[1]['create'] is defined and
|
||||
not item[1]['create'])
|
||||
not item[1]['create'] and
|
||||
item[1]['filesystem'] != "swap"))
|
||||
|
||||
- name: manage_lvm | Removing LVM logical volume(s)
|
||||
lvol:
|
||||
|
||||
Reference in New Issue
Block a user