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

pull/6708/head
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
1 changed files with 1 additions and 0 deletions

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