ansible-roles/webapps/evoadmin-mail/tasks/nginx.yml
Mathieu Trossevin 208d7d603c
[Cleanup] webapps
Probably the most dangerous part of the cleanup, replace call to the
shell module that don't seems to make use of shell features with the
command module.
2020-12-23 15:08:45 +01:00

36 lines
842 B
YAML

---
- name: Copy php-fpm evoadmin-mail pool
copy:
src: pool.evoadmin-mail.conf
dest: /etc/php/7.0/fpm/pool.d/evoadmin-mail.conf
notify: reload php-fpm
tags:
- evoadmin-mail
- name: Install evoadminmail VHost
template:
src: nginx_evoadminmail.conf.j2
dest: /etc/nginx/sites-available/evoadminmail.conf
notify: reload nginx
tags:
- evoadmin-mail
- name: Active evoadminmail VHost
file:
src: "/etc/nginx/sites-available/evoadminmail.conf"
dest: "/etc/nginx/sites-enabled/evoadminmail.conf"
state: link
notify: reload nginx
when: evoadminmail_enable_vhost
tags:
- evoadmin-mail
- name: Disable evoadminmail vhost
file:
dest: "/etc/nginx/sites-enabled/evoadminmail.conf"
state: absent
notify: reload nginx
when: not evoadminmail_enable_vhost
tags:
- evoadmin-mail