forked from ISTI-ansible-roles/ansible-roles
library/roles/apache: Permit the removal of a list of modules.
dnet-efg: Fixes.
This commit is contained in:
parent
d6bc63915f
commit
6d4bff4841
|
@ -17,11 +17,17 @@
|
||||||
|
|
||||||
- name: Load additional apache modules if any
|
- name: Load additional apache modules if any
|
||||||
apache2_module: name={{ item }} state=present
|
apache2_module: name={{ item }} state=present
|
||||||
with_items: '{{ apache_additional_modules_list }}'
|
with_items: '{{ apache_additional_modules_list | default ([]) }}'
|
||||||
when: apache_additional_modules
|
when: apache_additional_modules
|
||||||
notify: apache2 reload
|
notify: apache2 reload
|
||||||
tags: [ 'apache', 'apache_mods' ]
|
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
|
- name: Load the apache status module
|
||||||
apache2_module: name={{ item }} state=present
|
apache2_module: name={{ item }} state=present
|
||||||
with_items: status
|
with_items: status
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
with_items: '{{ apache_worker_modules }}'
|
with_items: '{{ apache_worker_modules }}'
|
||||||
when: is_trusty
|
when: is_trusty
|
||||||
notify: apache2 restart
|
notify: apache2 restart
|
||||||
|
ignore_errors: True
|
||||||
tags: [ 'apache', 'apache_modules', 'apache_workers_modules' ]
|
tags: [ 'apache', 'apache_modules', 'apache_workers_modules' ]
|
||||||
|
|
||||||
- name: Load the required modules
|
- name: Load the required modules
|
||||||
|
|
Loading…
Reference in New Issue