fix(partitioning): register swapoff result for changed_when handling
This commit is contained in:
1 parent
ed8da6e4e2
commit
f8eaa41fc2
1 file changed
+2
-1
@@ -43,7 +43,8 @@
|
||||
block:
|
||||
- name: Disable swap
|
||||
ansible.builtin.command: swapoff -a
|
||||
changed_when: false
|
||||
register: partitioning_swapoff_result
|
||||
changed_when: partitioning_swapoff_result.rc == 0
|
||||
failed_when: false
|
||||
|
||||
- name: Find mounts under /mnt
|
||||
|
||||
Reference in new issue
Block a user