2021-01-14 12:25:23 +01:00
|
|
|
#!/usr/bin/env ansible-playbook
|
2021-01-14 12:16:20 +01:00
|
|
|
---
|
|
|
|
# Deploy mail server
|
2021-01-17 12:47:58 +01:00
|
|
|
- hosts: mail.auro.re
|
2021-01-17 13:27:55 +01:00
|
|
|
roles:
|
2021-01-29 23:44:20 +01:00
|
|
|
- mail_utils
|
|
|
|
- mail_certificates
|
|
|
|
- nfs_client
|
2021-02-04 23:35:12 +01:00
|
|
|
# - postfix
|
2021-01-29 00:55:02 +01:00
|
|
|
- dovecot
|
2021-02-04 23:35:12 +01:00
|
|
|
- re2o_service_mailserver
|
2021-01-14 22:48:13 +01:00
|
|
|
# - rspamd
|
2021-02-04 01:03:18 +01:00
|
|
|
# - mail-fail2ban
|
2021-01-17 12:47:58 +01:00
|
|
|
#
|
2021-01-14 12:16:20 +01:00
|
|
|
# Make OVH server send mails through proxy ?
|
|
|
|
# Add multiple MX
|
|
|
|
# Configure DKIM, SPF, Greylisting, etc...
|
2021-02-04 14:47:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Deploy Re2o mail service
|
2021-02-04 23:35:12 +01:00
|
|
|
- hosts: mail.auro.re
|
|
|
|
vars:
|
|
|
|
service_repo: https://gitea.auro.re/aurore/re2o-mail-server.git
|
|
|
|
service_name: mail-server
|
|
|
|
service_version: aurore
|
|
|
|
service_config:
|
|
|
|
hostname: re2o-test.adm.auro.re # use test instance for now, should be changed for prod!
|
|
|
|
username: service-user
|
|
|
|
password: "{{ vault_serviceuser_passwd }}"
|
|
|
|
roles:
|
|
|
|
- re2o-service
|