From 36f89c4488c6de500425c1546ef9a2b87df2a9eb Mon Sep 17 00:00:00 2001 From: entlein <einentlein@gmail.com> Date: Wed, 13 Jul 2022 23:49:03 +0200 Subject: [PATCH] we dont need to fix selinux when we are upgrading a running cluster --- roles/rke2/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/rke2/tasks/main.yml b/roles/rke2/tasks/main.yml index e55f446..e3e540d 100644 --- a/roles/rke2/tasks/main.yml +++ b/roles/rke2/tasks/main.yml @@ -21,10 +21,10 @@ - name: Flush handlers meta: flush_handlers - + #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 - when: state != 'absent' and 'control-plane' in group_names + when: state != 'absent' and 'control-plane' in group_names and not upgrade - name: uninstall rke2 command: rke2-uninstall.sh -- GitLab