2020-12-27 13:22:47 +01:00
|
|
|
---
|
|
|
|
|
2020-12-27 19:41:35 +01:00
|
|
|
- name: recieve {{domain}} certificate
|
|
|
|
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
|
|
|
|
2020-12-27 16:16:12 +01:00
|
|
|
- name: configure {{domain}}.conf
|
2021-01-01 21:05:58 +01:00
|
|
|
template: src=roles/native-nginx-docker-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
2020-12-27 16:16:12 +01:00
|
|
|
notify: restart nginx
|
|
|
|
|
2020-12-28 21:24:32 +01:00
|
|
|
- name: "create /etc/mailu/"
|
2020-12-27 13:22:47 +01:00
|
|
|
file:
|
2020-12-28 21:24:32 +01:00
|
|
|
path: "/etc/mailu"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: "create /usr/local/bin/mailu/"
|
|
|
|
file:
|
|
|
|
path: "/usr/local/bin/mailu"
|
2020-12-27 13:22:47 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2020-12-27 19:41:35 +01:00
|
|
|
- name: add docker-compose.yml
|
2020-12-28 21:24:32 +01:00
|
|
|
template: src=docker-compose.yml.j2 dest=/usr/local/bin/mailu/docker-compose.yml
|
2020-12-29 13:20:55 +01:00
|
|
|
notify: rescreate mailu
|
2020-12-27 13:22:47 +01:00
|
|
|
|
2020-12-27 19:41:35 +01:00
|
|
|
- name: add mailu.env
|
2020-12-28 21:24:32 +01:00
|
|
|
template: src=mailu.env.j2 dest=/usr/local/bin/mailu/mailu.env
|
2020-12-29 13:20:55 +01:00
|
|
|
notify: rescreate mailu
|