From 3a3addb91e88d8209c36ade0931578e03990169c Mon Sep 17 00:00:00 2001 From: Mikhail Gorozhin Date: Wed, 17 May 2023 05:38:33 +0600 Subject: [PATCH] Ignore errors in check mode performing "Disable swapOnZram for Fedora" (#10077) --- 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 c3c5e9e91..997a18c85 100644 --- a/roles/kubernetes/preinstall/tasks/0010-swapoff.yml +++ b/roles/kubernetes/preinstall/tasks/0010-swapoff.yml @@ -25,3 +25,4 @@ when: - swapon.stdout - ansible_distribution in ['Fedora'] + ignore_errors: "{{ ansible_check_mode }}" # noqa ignore-errors