diff --git a/tasks/configure.yml b/tasks/configure.yml index 9f6b348..c80d785 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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