diff --git a/roles/rke2/tasks/main.yml b/roles/rke2/tasks/main.yml
index c54570b59451d1f5a0e792ac2117767222240f47..24b59c452fb27a70f646a37759fd682b86308bac 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