Ignore error in check mode when disabling swap (#6703)

This commit is contained in:
Florian Ruynat 2020-09-18 16:26:46 +02:00 committed by GitHub
parent e666fe5a8d
commit b7c4136702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"