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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue