From a5a802e7f994a620f8424fd228652fa80d13498c Mon Sep 17 00:00:00 2001 From: entlein <einentlein@gmail.com> Date: Thu, 4 Aug 2022 23:30:42 +0200 Subject: [PATCH] trying to make it idempotent again --- roles/rke2/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/rke2/tasks/main.yml b/roles/rke2/tasks/main.yml index e55f446..7434ced 100644 --- a/roles/rke2/tasks/main.yml +++ b/roles/rke2/tasks/main.yml @@ -19,8 +19,10 @@ - include_tasks: kubeconfig.yml when: state != 'absent' and 'master' in group_names +# Flush the handlers only for fresh installs - name: Flush handlers meta: flush_handlers + when: ( not rke2_installed.stat.exists and state != 'absent' )s #This task runs only after the full installer went through and had a bit of time to boot, then starts to enforce SELinux - include_tasks: fix_selinux.yml -- GitLab