fix(partitioning): register swapoff result for changed_when handling
This commit is contained in:
@@ -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