Apache: Fix some conditionals.
This commit is contained in:
parent
32695a0a33
commit
ac16f86970
|
@ -8,33 +8,33 @@
|
|||
|
||||
- name: Install the libapache2-mod-rpaf module
|
||||
apt: pkg=libapache2-mod-rpaf state=present
|
||||
when: apache_rpaf_install
|
||||
when: apache_rpaf_install | bool
|
||||
tags: [ 'apache', 'apache_mods', 'apache_rpaf' ]
|
||||
|
||||
- name: Enable the apache rpaf module
|
||||
apache2_module: name=rpaf state=present
|
||||
when: apache_rpaf_install
|
||||
when: apache_rpaf_install | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods', 'apache_rpaf' ]
|
||||
|
||||
- name: Load the apache ssl modules
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: '{{ apache_ssl_modules }}'
|
||||
when: apache_ssl_modules_enabled
|
||||
when: apache_ssl_modules_enabled | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods' ]
|
||||
|
||||
- name: Load some apache proxy modules
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: '{{ apache_http_proxy_modules }}'
|
||||
when: apache_http_proxy_modules_enabled
|
||||
when: apache_http_proxy_modules_enabled | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods' ]
|
||||
|
||||
- name: Load additional apache modules if any
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: '{{ apache_additional_modules_list | default ([]) }}'
|
||||
when: apache_additional_modules
|
||||
when: apache_additional_modules_list is defined
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods' ]
|
||||
|
||||
|
@ -47,28 +47,28 @@
|
|||
- name: Load the apache status module
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: status
|
||||
when: apache_status_module
|
||||
when: apache_status_module | bool
|
||||
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
|
||||
when: apache_status_module
|
||||
when: apache_status_module | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods', 'apache_status' ]
|
||||
|
||||
- name: Load the apache info module
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: info
|
||||
when: apache_info_module
|
||||
when: apache_info_module | bool
|
||||
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
|
||||
when: apache_info_module
|
||||
when: apache_info_module | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods', 'apache_info' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue