diff --git a/tasks/checks.yml b/tasks/checks.yml index 3a8bc1b297a9ae12db0687ed55ce3145c0629bd2..42dee15148e12209f1e43186dfd7502069b45864 100644 --- a/tasks/checks.yml +++ b/tasks/checks.yml @@ -11,6 +11,22 @@ - name: Check that mistakes haven't been made in the variables and arrays block: + - name: Find the mods available + ansible.builtin.find: + paths: /etc/apache2/mods-available + file_type: file + use_regex: true + patterns: '^.*[.]load$' + recurse: false + register: apache_mods_available_load + + - name: Debug the mods available + ansible.builtin.debug: + var: apache_mods_available_load + + - name: Debug fail + ansible.builtin.fail: + - name: Check that at least one module is in apache_mods_enabled and that either mpm_event or mpm_prefork is enabled ansible.builtin.assert: that: