updated logic
diff --git a/tasks/main.yml b/tasks/main.yml
index c8d8c5f..ef595d9 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -9,7 +9,7 @@
 - name: Indicate whether selinux is disabled
   cache:
     key: 'selinux_disabled'
-    value: "{{ ansible_selinux.status == 'disabled' }}"
+    value: "{{ ansible_selinux.status == 'disabled' | bool }}"
 
 - name: Permanently disable SELINUX
   selinux: state=disabled