From c00642d46c4b7da2d088a4d858c1b1745b1ba031 Mon Sep 17 00:00:00 2001 From: Warkdev Date: Sat, 7 Jan 2023 16:00:56 +0100 Subject: [PATCH] Refining integration test - previous was invalid --- .../tasks/635-apache2-misleading-warning.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/apache2_module/tasks/635-apache2-misleading-warning.yml b/tests/integration/targets/apache2_module/tasks/635-apache2-misleading-warning.yml index a7bb2e5ba7..047dbad050 100644 --- a/tests/integration/targets/apache2_module/tasks/635-apache2-misleading-warning.yml +++ b/tests/integration/targets/apache2_module/tasks/635-apache2-misleading-warning.yml @@ -21,12 +21,22 @@ "No MPM module loaded! apache2 reload AND other module actions will fail if no MPM module is loaded immediately." ] +- name: Enable MPM event module - Revert previous change + apache2_module: + name: "{{ item.module}}" + state: "{{ item.state}}" + ignore_configcheck: true + register: disable_mpm_modules + with_items: + - { module: mpm_prefork, state: absent } + - { module: mpm_event, state: present } + - name: Disable MPM event module apache2_module: name: "{{ item.module}}" state: "{{ item.state}}" ignore_configcheck: true - warn_mpm_absent: false + warn_mpm_absent: False register: disable_mpm_modules with_items: - { module: mpm_event, state: absent }