diff --git a/tasks/checks.yml b/tasks/checks.yml
index f2b23da494053aba27d2b54c6c01b78f02a96607..757d5aa780df8e49e85991490aeabeafa196eeb6 100644
--- a/tasks/checks.yml
+++ b/tasks/checks.yml
@@ -44,7 +44,7 @@
     - name: Check that no mods are enabled and disabled
       assert:
         that: "{{ mod }} not in apache_mods_disabled"
-      loop: apache_mods_enabled
+      loop: apache_mods_enabled | list
       loop_control:
         loop_var: mod
         label: "{{ mod }}"