apache: Fix the task that adds additional modules when we have an empty list.
This commit is contained in:
parent
5de6afff94
commit
4a4f623b47
|
@ -82,7 +82,7 @@ apache_additional_packages_list:
|
|||
#
|
||||
# Set this variable to load the modules you need
|
||||
apache_additional_modules: False
|
||||
apache_additional_modules_list:
|
||||
apache_additional_modules_list: []
|
||||
# -
|
||||
# -
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
- name: Load additional apache modules if any
|
||||
apache2_module: name={{ item }} state=present
|
||||
with_items: '{{ apache_additional_modules_list | default ([]) }}'
|
||||
when: apache_additional_modules_list is defined
|
||||
when: apache_additional_modules | bool
|
||||
notify: apache2 reload
|
||||
tags: [ 'apache', 'apache_mods' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue