forked from ISTI-ansible-roles/ansible-roles
library/roles/apache: Fix the worker modules loading, again.
This commit is contained in:
parent
cf33f2a586
commit
281e46ae7f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue