self-hosting/playbook_mailserver.yml

21 lines
536 B
YAML

---
# This is taken from https://workaround.org/ispmail-bookworm/, thanks!
- name: Install mail server
gather_facts: true
hosts: mailserver,mailserver-test
roles:
- role: common_handlers
tags: always
- role: deploy_certificate
vars:
server_admin: dns@tunuifranken.info
domain: "{{ ansible_hostname }}.tunuifranken.info"
tags: cert
- role: mailserver_database
tags: database
- role: mailserver_postfix
tags: postfix
- role: mailserver_dovecot
tags: dovecot