use shell to manage mpm mod

This commit is contained in:
Antonio J. Delgado 2023-02-10 13:01:01 +02:00
parent 54b7833092
commit fb638ed0bc

View file

@ -9,14 +9,14 @@
rule: allow rule: allow
port: 443 port: 443
- name: Disable MPM Apache2 modules - name: Ensure MPM Worker module is disabled
community.general.apache2_module: shell: a2dismod mpm_worker
state: absent
name: "{{ item }}" - name: Ensure MPM Event module is disabled
ignore_errors: true shell: a2dismod mpm_event
loop:
- mpm_worker - name: Ensure MPM Prefork module is enabled
- mpm_event shell: a2enmod mpm_prefork
- name: Enable Apache2 modules - name: Enable Apache2 modules
community.general.apache2_module: community.general.apache2_module:
@ -25,7 +25,6 @@
loop: loop:
- rewrite - rewrite
- ssl - ssl
- mpm_prefork
- name: Ensure default vhost root exists - name: Ensure default vhost root exists