Remove default vhosts
This commit is contained in:
parent
e14f65a3a0
commit
97c91fb3c0
1 changed files with 15 additions and 0 deletions
|
@ -13,6 +13,21 @@
|
|||
path: /var/www/html
|
||||
state: absent
|
||||
|
||||
- name: Remove default vHost
|
||||
become: true
|
||||
command: a2dissite 000-default.conf
|
||||
notify: Restart apache2 service
|
||||
|
||||
- name: Remove default vHost conf files
|
||||
become: true
|
||||
file:
|
||||
path: "/etc/apache2/sites-available/{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- 000-default.conf
|
||||
- default-ssl.conf
|
||||
notify: Restart apache2 service
|
||||
|
||||
- name: Create /var/www/empty for *:80 vHosts
|
||||
become: true
|
||||
file:
|
||||
|
|
Loading…
Reference in a new issue