forked from ISTI-ansible-roles/ansible-roles
Merge pull request 'apache: Fix the task that adds additional modules when we have an empty list.' (#163) from adellam/ansible-roles:master into master
This commit is contained in:
commit
59c81069d4
|
@ -82,7 +82,7 @@ apache_additional_packages_list:
|
||||||
#
|
#
|
||||||
# Set this variable to load the modules you need
|
# Set this variable to load the modules you need
|
||||||
apache_additional_modules: False
|
apache_additional_modules: False
|
||||||
apache_additional_modules_list:
|
apache_additional_modules_list: []
|
||||||
# -
|
# -
|
||||||
# -
|
# -
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
- 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 | default ([]) }}'
|
with_items: '{{ apache_additional_modules_list | default ([]) }}'
|
||||||
when: apache_additional_modules_list is defined
|
when: apache_additional_modules | bool
|
||||||
notify: apache2 reload
|
notify: apache2 reload
|
||||||
tags: [ 'apache', 'apache_mods' ]
|
tags: [ 'apache', 'apache_mods' ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue