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