From 281e46ae7f6ccabeace0c8439b8ab8defee8f3be Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 1 Feb 2017 20:02:05 +0100 Subject: [PATCH] library/roles/apache: Fix the worker modules loading, again. --- apache/defaults/main.yml | 2 +- apache/tasks/apache.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/defaults/main.yml b/apache/defaults/main.yml index e036830..1673702 100644 --- a/apache/defaults/main.yml +++ b/apache/defaults/main.yml @@ -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 diff --git a/apache/tasks/apache.yml b/apache/tasks/apache.yml index 1ec4619..ffeaaed 100644 --- a/apache/tasks/apache.yml +++ b/apache/tasks/apache.yml @@ -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