library/roles/apache: Fix the worker modules loading, again.

This commit is contained in:
Andrea Dell'Amico 2017-02-01 20:02:05 +01:00
parent cf33f2a586
commit 281e46ae7f
2 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@ apache_packages:
# Only one can be present at the same time. It needs to be listed as the last one
apache_worker_modules:
- { name: 'mpm_{{ apache_mpm_mode }}', state: 'present' }
# - { name: 'mpm_itm', state: 'absent' }
- { name: 'mpm_event', state: 'absent' }
- { name: 'mpm_prefork', state: 'absent' }
- { name: 'mpm_{{ apache_mpm_mode }}', state: 'present' }
apache_default_modules:
- headers

View File

@ -11,7 +11,7 @@
tags: [ 'apache', 'apache_additional_packages' ]
- name: Load the required worker module
apache2_module: name={{ item.name }} state={{ item.state }}
apache2_module: name={{ item.name }} state={{ item.state }} force=yes
with_items: '{{ apache_worker_modules }}'
when: is_trusty
notify: apache2 restart