Ignore error in check mode when disabling swap (#6703)
This commit is contained in:
@ -16,3 +16,4 @@
|
|||||||
- name: Disable swap
|
- name: Disable swap
|
||||||
command: /sbin/swapoff -a
|
command: /sbin/swapoff -a
|
||||||
when: swapon.stdout
|
when: swapon.stdout
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
Reference in New Issue
Block a user