From adcb4b2f6166b408da01488af6f8e14ce36f1a62 Mon Sep 17 00:00:00 2001 From: entlein <einentlein@gmail.com> Date: Fri, 1 Jul 2022 10:11:31 +0200 Subject: [PATCH] boolean correct now --- roles/rke2/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/rke2/tasks/main.yml b/roles/rke2/tasks/main.yml index c54570b..24b59c4 100644 --- a/roles/rke2/tasks/main.yml +++ b/roles/rke2/tasks/main.yml @@ -6,18 +6,18 @@ - block: - include_tasks: setup_host.yml - include_tasks: install_rke2.yml - when: ( not rke2_installed.stat.exists and state != 'absent' and postinstall == 'False') or (upgrade and state != 'absent' and postinstall == 'False' ) + when: ( not rke2_installed.stat.exists and state != 'absent' and not postinstall) or (upgrade and state != 'absent' and not postinstall ) - include_tasks: templates.yml - when: "state != 'absent' and 'master' in group_names and postinstall == 'False' " + when: "state != 'absent' and 'master' in group_names and not postinstall " - block: - include_tasks: registries.yml - include_tasks: config_rke2.yml - when: state != 'absent' and postinstall == 'False' + when: state != 'absent' and not postinstall - include_tasks: kubeconfig.yml - when: state != 'absent' and 'master' in group_names and postinstall == 'False' + when: state != 'absent' and 'master' in group_names and not postinstall #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