Initial commit

This commit is contained in:
Julian Rother 2025-01-14 16:16:36 +01:00
commit a7c269731d
Signed by: julian
GPG key ID: C19B924C0CD13341
6 changed files with 97 additions and 0 deletions

25
tasks/main.yml Normal file
View file

@ -0,0 +1,25 @@
- name: Install dovecot
ansible.builtin.apt:
pkg:
- dovecot-common
- dovecot-imapd
- dovecot-submissiond
- name: Copy dovecot config
ansible.builtin.template:
src: dovecot.conf.j2
dest: /etc/dovecot/dovecot.conf
owner: root
group: root
mode: 0644
notify: Reload dovecot
- name: Copy dovecot proxy configs
ansible.builtin.template:
src: proxy-sql.conf.j2
dest: "/etc/dovecot/proxy-domain-{{ item.key }}-sql.conf"
owner: root
group: root
mode: 0644
loop: "{{ dovecot_proxy.domain_proxies|dict2items }}"
notify: Reload dovecot