29 lines
749 B
YAML
29 lines
749 B
YAML
---
|
|
- name: Install evoadminmail VHost
|
|
ansible.builtin.template:
|
|
src: apache_evoadminmail.conf.j2
|
|
dest: /etc/apache2/sites-available/evoadminmail.conf
|
|
notify: reload apache2
|
|
tags:
|
|
- evoadmin-mail
|
|
|
|
- name: Enable evoadminmail vhost
|
|
ansible.builtin.file:
|
|
src: "/etc/apache2/sites-available/evoadminmail.conf"
|
|
dest: "/etc/apache2/sites-enabled/evoadminmail.conf"
|
|
state: link
|
|
force: true
|
|
notify: reload apache2
|
|
when: evoadminmail_enable_vhost | bool
|
|
tags:
|
|
- evoadmin-mail
|
|
|
|
- name: Disable evoadminmail vhost
|
|
ansible.builtin.file:
|
|
dest: "/etc/apache2/sites-enabled/evoadminmail.conf"
|
|
state: absent
|
|
notify: reload apache2
|
|
when: not (evoadminmail_enable_vhost | bool)
|
|
tags:
|
|
- evoadmin-mail
|