2015-07-14 17:43:27 +02:00
|
|
|
---
|
2018-10-15 15:37:56 +02:00
|
|
|
- name: Load the required modules
|
|
|
|
apache2_module: name={{ item }} state=present force=yes
|
|
|
|
with_items: '{{ apache_default_modules }}'
|
|
|
|
notify: apache2 reload
|
|
|
|
ignore_errors: True
|
|
|
|
tags: [ 'apache', 'apache_modules' ]
|
|
|
|
|
2017-03-22 17:38:46 +01:00
|
|
|
- name: Install the libapache2-mod-rpaf module
|
|
|
|
apt: pkg=libapache2-mod-rpaf state=present
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_rpaf_install | bool
|
2017-03-22 17:38:46 +01:00
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_rpaf' ]
|
|
|
|
|
|
|
|
- name: Enable the apache rpaf module
|
|
|
|
apache2_module: name=rpaf state=present
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_rpaf_install | bool
|
2017-03-22 17:38:46 +01:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_rpaf' ]
|
|
|
|
|
2015-07-14 17:43:27 +02:00
|
|
|
- name: Load the apache ssl modules
|
|
|
|
apache2_module: name={{ item }} state=present
|
2016-04-04 17:59:59 +02:00
|
|
|
with_items: '{{ apache_ssl_modules }}'
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_ssl_modules_enabled | bool
|
2015-07-14 17:43:27 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods' ]
|
|
|
|
|
|
|
|
- name: Load some apache proxy modules
|
|
|
|
apache2_module: name={{ item }} state=present
|
2016-04-04 17:59:59 +02:00
|
|
|
with_items: '{{ apache_http_proxy_modules }}'
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_http_proxy_modules_enabled | bool
|
2015-07-14 17:43:27 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods' ]
|
|
|
|
|
|
|
|
- name: Load additional apache modules if any
|
|
|
|
apache2_module: name={{ item }} state=present
|
2017-01-27 03:31:10 +01:00
|
|
|
with_items: '{{ apache_additional_modules_list | default ([]) }}'
|
2020-03-19 17:48:21 +01:00
|
|
|
when: apache_additional_modules | bool
|
2015-07-14 17:43:27 +02:00
|
|
|
notify: apache2 reload
|
2017-01-27 03:31:10 +01:00
|
|
|
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
|
2015-07-14 17:43:27 +02:00
|
|
|
tags: [ 'apache', 'apache_mods' ]
|
2016-04-04 17:59:59 +02:00
|
|
|
|
|
|
|
- name: Load the apache status module
|
|
|
|
apache2_module: name={{ item }} state=present
|
|
|
|
with_items: status
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_status_module | bool
|
2016-04-04 17:59:59 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_status' ]
|
|
|
|
|
|
|
|
- name: Configure the apache status module
|
|
|
|
template: src={{ item }}.j2 dest=/etc/apache2/mods-available/{{ item }} owner=root group=root mode=0644
|
|
|
|
with_items: status.conf
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_status_module | bool
|
2016-04-04 17:59:59 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_status' ]
|
|
|
|
|
|
|
|
- name: Load the apache info module
|
|
|
|
apache2_module: name={{ item }} state=present
|
|
|
|
with_items: info
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_info_module | bool
|
2016-04-04 17:59:59 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_info' ]
|
|
|
|
|
|
|
|
- name: Configure the apache info module
|
|
|
|
template: src={{ item }}.j2 dest=/etc/apache2/mods-available/{{ item }} owner=root group=root mode=0644
|
|
|
|
with_items: info.conf
|
2019-12-05 18:32:22 +01:00
|
|
|
when: apache_info_module | bool
|
2016-04-04 17:59:59 +02:00
|
|
|
notify: apache2 reload
|
|
|
|
tags: [ 'apache', 'apache_mods', 'apache_info' ]
|
|
|
|
|