From b7c41367027b11a48948f5e2c80df15c0dc60da2 Mon Sep 17 00:00:00 2001 From: Florian Ruynat <16313165+floryut@users.noreply.github.com> Date: Fri, 18 Sep 2020 16:26:46 +0200 Subject: [PATCH] Ignore error in check mode when disabling swap (#6703) --- roles/kubernetes/preinstall/tasks/0010-swapoff.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml index 99587ac03..73028e0f6 100644 --- a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml +++ b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml @@ -16,3 +16,4 @@ - name: Disable swap command: /sbin/swapoff -a when: swapon.stdout + ignore_errors: "{{ ansible_check_mode }}"