diff --git a/library/roles/apache/defaults/main.yml b/library/roles/apache/defaults/main.yml index fab800e..4da45fe 100644 --- a/library/roles/apache/defaults/main.yml +++ b/library/roles/apache/defaults/main.yml @@ -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: [] # - # - diff --git a/library/roles/apache/tasks/apache-modules.yml b/library/roles/apache/tasks/apache-modules.yml index 285242b..cfe9423 100644 --- a/library/roles/apache/tasks/apache-modules.yml +++ b/library/roles/apache/tasks/apache-modules.yml @@ -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' ]