diff --git a/tasks/checks.yml b/tasks/checks.yml
index 4647d0a50312d7c5734d685ee4273b174460fcc0..d2253614469b1311a57ecf8e09961d7f435cbc5f 100644
--- a/tasks/checks.yml
+++ b/tasks/checks.yml
@@ -46,12 +46,12 @@
 
         - name: Debug mods enabled
           debug:
-            var: mod
+            var: apache_mods_enabled
             verbosity: 2
-          loop: "{{ apache_mods_enabled }}"
-          loop_control:
-            loop_var: mod
-            label: "{{ mod }}"
+          #loop: "{{ apache_mods_enabled }}"
+          #loop_control:
+          #  loop_var: mod
+          #  label: "{{ mod }}"
     
         - name: Check that no mods are enabled and disabled
           assert:
@@ -72,15 +72,15 @@
     
         - name: Check that no mods are disabled and enabled
           assert:
-            that: mod not in apache_mods_enabled
+            that: "{{ mod }} not in apache_mods_enabled"
           loop: "{{ apache_mods_disabled }}"
           loop_control:
             loop_var: mod
             label: "{{ mod }}"
 
       when:
-        - ( apache_mods_disabled is defined ) and ( apache_mods_disabled[0] is defined )
         - ( apache_mods_enabled is defined ) and ( apache_mods_enabled[0] is defined )
+        - ( apache_mods_disabled is defined ) and ( apache_mods_disabled[0] is defined )
 
     - name: Check that no conf are enabled and disabled
       assert:
@@ -98,7 +98,9 @@
       loop_control:
         loop_var: conf
         label: "{{ conf }}"
-      when: apache_conf_disabled[0] is defined
+
+      when:
+        - ( apache_conf_disabled is defined ) and ( apache_conf_disabled[0] is defined )
 
     - name: Check that no sites are enabled and disabled
       assert: