2017-10-10 00:03:22 +02:00
|
|
|
---
|
|
|
|
- name: Install evoadminmail VHost
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2018-09-12 15:31:52 +02:00
|
|
|
src: apache_evoadminmail.conf.j2
|
2017-10-10 00:03:22 +02:00
|
|
|
dest: /etc/apache2/sites-available/evoadminmail.conf
|
|
|
|
notify: reload apache2
|
2018-12-05 14:59:19 +01:00
|
|
|
tags:
|
|
|
|
- evoadmin-mail
|
2017-10-10 00:03:22 +02:00
|
|
|
|
|
|
|
- name: Enable evoadminmail vhost
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2018-12-05 14:59:19 +01:00
|
|
|
src: "/etc/apache2/sites-available/evoadminmail.conf"
|
|
|
|
dest: "/etc/apache2/sites-enabled/evoadminmail.conf"
|
|
|
|
state: link
|
2017-10-10 00:03:22 +02:00
|
|
|
notify: reload apache2
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evoadminmail_enable_vhost | bool
|
2018-12-05 14:59:19 +01:00
|
|
|
tags:
|
|
|
|
- evoadmin-mail
|
2017-10-10 00:03:22 +02:00
|
|
|
|
|
|
|
- name: Disable evoadminmail vhost
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2018-12-05 14:59:19 +01:00
|
|
|
dest: "/etc/apache2/sites-enabled/evoadminmail.conf"
|
|
|
|
state: absent
|
2017-10-10 00:03:22 +02:00
|
|
|
notify: reload apache2
|
2021-05-09 23:06:42 +02:00
|
|
|
when: not (evoadminmail_enable_vhost | bool)
|
2018-12-05 14:59:19 +01:00
|
|
|
tags:
|
|
|
|
- evoadmin-mail
|