From c7fb9b5b671d7ed7e3eb7ecda1e458cbef4fcb50 Mon Sep 17 00:00:00 2001 From: gorozhin Date: Mon, 15 May 2023 15:04:34 +0600 Subject: [PATCH] Ignore errors in check mode performing "Disable swapOnZram for Fedora" --- 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 c3c5e9e9122..997a18c8510 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