Skip to content

Commit 57258a0

Browse files
author
Matt Graham
authored
Fix removal of filesystem on every run for non-LVM volumes
1 parent e8c37f4 commit 57258a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/volume-default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
volume: "{{ volume|combine({'_wipe': volume._preexist and (not volume.fs_type or (volume._orig_fs_type and volume.fs_type != volume._orig_fs_type))}) }}"
8080

8181
- set_fact:
82-
volume: "{{ volume|combine({'_remove': volume.state == 'absent' or (pool is not defined or (pool.state is defined and pool.state == 'absent'))}) }}"
82+
volume: "{{ volume|combine({'_remove': volume.state == 'absent' or (pool is defined and pool.state is defined and pool.state == 'absent')}) }}"
8383

8484
- set_fact:
8585
volume: "{{ volume|combine({'_create': volume.state == 'present' and (pool is not defined or (pool.state is not defined or pool.state == 'present'))}) }}"

0 commit comments

Comments
 (0)