mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-14 13:54:58 +03:00
avoid error when lv not defined
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
state: "absent"
|
||||
force: yes
|
||||
become: true
|
||||
loop: "{{ lvm_groups|subelements('lvnames') }}"
|
||||
loop: "{{ lvm_groups|subelements('lvnames') | default([]) }}"
|
||||
when: >
|
||||
(item.1 is defined and
|
||||
item.1 != 'None') and
|
||||
|
||||
Reference in New Issue
Block a user