From b71a0eefd16193ffcf0e94b63a61ead1a78d0553 Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Wed, 6 Sep 2023 22:18:25 +0100 Subject: [PATCH] debug test --- tasks/checks.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tasks/checks.yml b/tasks/checks.yml index 3a8bc1b..42dee15 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: -- GitLab