2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: Install the apache packages
|
|
|
|
apt: pkg={{ item }} state=installed force=yes
|
|
|
|
with_items: apache_packages
|
2015-07-14 17:43:27 +02:00
|
|
|
tags: apache
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: Load the required modules
|
|
|
|
apache2_module: name={{ item }} state=present
|
|
|
|
with_items: apache_default_modules
|
|
|
|
notify: apache2 reload
|
2015-07-14 17:43:27 +02:00
|
|
|
tags: apache
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: Remove the default virtualhost file
|
|
|
|
file: dest=/etc/apache2/sites-enabled/{{ item }} state=absent
|
|
|
|
with_items:
|
|
|
|
- 000-default
|
|
|
|
- 000-default.conf
|
|
|
|
notify: apache2 reload
|
2015-07-14 17:43:27 +02:00
|
|
|
tags: apache
|