From 8c86f890b7d21dc02e1f8bb30ea82d5ea177bdcc Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 8 Feb 2023 21:09:31 +0200 Subject: [PATCH] alter order with apache modules --- tasks/configure.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index ba2eff8..1cd8905 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -9,6 +9,14 @@ rule: allow port: 443 +- name: Disable MPM Apache2 modules + community.general.apache2_module: + state: absent + name: "{{ item }}" + loop: + - mpm_worker + - mpm_event + - name: Enable Apache2 modules community.general.apache2_module: state: present @@ -18,14 +26,6 @@ - ssl - mpm_prefork -- name: Disable MPM Apache2 modules - community.general.apache2_module: - state: absent - name: "{{ item }}" - loop: - - mpm_worker - - mpm_event - - name: Stop Apache service: name: apache2