alter order with apache modules

This commit is contained in:
Antonio J. Delgado 2023-02-08 21:09:31 +02:00
parent 0f8b386fba
commit 8c86f890b7

View file

@ -9,6 +9,14 @@
rule: allow rule: allow
port: 443 port: 443
- name: Disable MPM Apache2 modules
community.general.apache2_module:
state: absent
name: "{{ item }}"
loop:
- mpm_worker
- mpm_event
- name: Enable Apache2 modules - name: Enable Apache2 modules
community.general.apache2_module: community.general.apache2_module:
state: present state: present
@ -18,14 +26,6 @@
- ssl - ssl
- mpm_prefork - mpm_prefork
- name: Disable MPM Apache2 modules
community.general.apache2_module:
state: absent
name: "{{ item }}"
loop:
- mpm_worker
- mpm_event
- name: Stop Apache - name: Stop Apache
service: service:
name: apache2 name: apache2