ansible-roles/apache/tasks/apache-modules.yml

24 lines
711 B
YAML

---
- name: Load the apache ssl modules
apache2_module: name={{ item }} state=present
with_items: apache_ssl_modules
when:
- apache_ssl_modules_enabled
- is_trusty
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
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
when: apache_additional_modules is defined
notify: apache2 reload
tags: [ 'apache', 'apache_mods' ]