From b8a0327fa976ab9b811c47e535bb9f7c6d1c953f Mon Sep 17 00:00:00 2001 From: alimehrabikoshki <79400736+alimehrabikoshki@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:45:42 +0100 Subject: [PATCH] fix: crio restart handler crio restart handler `when` clause is overwritten by an unrelated import_role. we set the import_role to load handlers from an empty file to avoid this --- roles/container-engine/cri-o/handlers/reset.yml | 0 roles/container-engine/validate-container-engine/tasks/main.yml | 1 + 2 files changed, 1 insertion(+) create mode 100644 roles/container-engine/cri-o/handlers/reset.yml diff --git a/roles/container-engine/cri-o/handlers/reset.yml b/roles/container-engine/cri-o/handlers/reset.yml new file mode 100644 index 000000000..e69de29bb diff --git a/roles/container-engine/validate-container-engine/tasks/main.yml b/roles/container-engine/validate-container-engine/tasks/main.yml index ffb541c24..6b16d966f 100644 --- a/roles/container-engine/validate-container-engine/tasks/main.yml +++ b/roles/container-engine/validate-container-engine/tasks/main.yml @@ -151,3 +151,4 @@ import_role: name: container-engine/cri-o tasks_from: reset + handlers_from: reset