library/roles/apache/tasks/apache.yml: Do not mess with the worker modules.

This commit is contained in:
Andrea Dell'Amico 2017-02-02 14:55:40 +01:00
parent c61e8fe767
commit 97e71b765a
1 changed files with 13 additions and 12 deletions

View File

@ -10,19 +10,20 @@
when: apache_additional_packages
tags: [ 'apache', 'apache_additional_packages' ]
- name: Load the required worker module
apache2_module: name={{ item.name }} state={{ item.state }} force=yes
with_items: '{{ apache_worker_modules }}'
when: is_trusty
notify: apache2 restart
ignore_errors: True
tags: [ 'apache', 'apache_modules', 'apache_workers_modules' ]
# - name: Load the required worker module
# apache2_module: name={{ item.name }} state={{ item.state }} force=yes
# with_items: '{{ apache_worker_modules }}'
# when: is_trusty
# notify: apache2 restart
# ignore_errors: True
# tags: [ 'apache', 'apache_modules', 'apache_workers_modules' ]
- name: Load the required modules
apache2_module: name={{ item }} state=present
with_items: '{{ apache_default_modules }}'
notify: apache2 reload
tags: [ 'apache', 'apache_modules' ]
# - name: Load the required modules
# apache2_module: name={{ item }} state=present force=yes
# with_items: '{{ apache_default_modules }}'
# notify: apache2 reload
# ignore_errors: True
# tags: [ 'apache', 'apache_modules' ]
- name: Remove the default virtualhost file
file: dest=/etc/apache2/sites-enabled/{{ item }} state=absent