diff --git a/roles/rke2/tasks/main.yml b/roles/rke2/tasks/main.yml index e55f44603794768ad39e2d5f8b9300f8c7c7543d..7434cedaf6a878e099de66fdc4d3ffed47343e41 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