2021-10-31 13:04:40 +01:00
|
|
|
---
|
2022-03-12 16:35:32 +01:00
|
|
|
- name: Install apache
|
|
|
|
become: true
|
2021-10-31 13:04:40 +01:00
|
|
|
apt:
|
2022-03-12 16:35:32 +01:00
|
|
|
name: apache2
|
2021-10-31 13:04:40 +01:00
|
|
|
state: present
|
|
|
|
update_cache: yes
|
2022-03-12 16:35:32 +01:00
|
|
|
notify: Restart apache2 service
|
2022-03-12 16:56:39 +01:00
|
|
|
|
|
|
|
- name: Remove default html dir
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: /var/www/html
|
|
|
|
state: absent
|
2022-03-12 19:00:14 +01:00
|
|
|
|
|
|
|
- name: Create /var/www/empty for *:80 vHosts
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: /var/www/empty
|
|
|
|
state: directory
|