library/roles/apache: Permit the removal of a list of modules.

dnet-efg: Fixes.
This commit is contained in:
Andrea Dell'Amico 2017-01-27 03:31:10 +01:00
parent d6bc63915f
commit 6d4bff4841
2 changed files with 8 additions and 1 deletions

View File

@ -17,11 +17,17 @@
- name: Load additional apache modules if any
apache2_module: name={{ item }} state=present
with_items: '{{ apache_additional_modules_list }}'
with_items: '{{ apache_additional_modules_list | default ([]) }}'
when: apache_additional_modules
notify: apache2 reload
tags: [ 'apache', 'apache_mods' ]
- name: Disable apache modules if any
apache2_module: name={{ item }} state=absent
with_items: '{{ apache_modules_to_be_removed | default ([]) }}'
notify: apache2 reload
tags: [ 'apache', 'apache_mods' ]
- name: Load the apache status module
apache2_module: name={{ item }} state=present
with_items: status

View File

@ -15,6 +15,7 @@
with_items: '{{ apache_worker_modules }}'
when: is_trusty
notify: apache2 restart
ignore_errors: True
tags: [ 'apache', 'apache_modules', 'apache_workers_modules' ]
- name: Load the required modules