use shell to manage mpm mod
This commit is contained in:
parent
54b7833092
commit
fb638ed0bc
1 changed files with 8 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue