apache: Fix the task that adds additional modules when we have an empty list.

This commit is contained in:
Andrea Dell'Amico 2020-03-19 17:48:21 +01:00
parent 5de6afff94
commit 4a4f623b47
2 changed files with 2 additions and 2 deletions

View File

@ -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: []
# -
# -

View File

@ -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' ]