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