aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/dovecot/tasks/main.yml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-22 19:57:48 +0100
committerGravatar Joe Banks <[email protected]>2024-08-23 16:52:18 +0100
commit05db13d11b4b34fd627a2b71cb6074dd20ca22e7 (patch)
treeb56a3824e8f02ca9a76a34cc2684d6234ca8fa90 /ansible/roles/dovecot/tasks/main.yml
parentAdd archive & automatically create mailboxes (diff)
Simplify dovecot configuration templating logic
Co-authored-by: My Vice Best Man <[email protected]>
Diffstat (limited to 'ansible/roles/dovecot/tasks/main.yml')
-rw-r--r--ansible/roles/dovecot/tasks/main.yml22
1 files changed, 8 insertions, 14 deletions
diff --git a/ansible/roles/dovecot/tasks/main.yml b/ansible/roles/dovecot/tasks/main.yml
index 33eb69d..4a6477b 100644
--- a/ansible/roles/dovecot/tasks/main.yml
+++ b/ansible/roles/dovecot/tasks/main.yml
@@ -63,24 +63,18 @@
- name: Template Dovecot component configurations
template:
- src: "configs/{{ item.template }}"
- dest: "/etc/dovecot/conf.d/{{ item.path }}"
+ src: "configs/{{ item }}.j2"
+ dest: "/etc/dovecot/conf.d/{{ item }}"
group: root
owner: root
mode: "0644"
loop:
- - template: 10-mail.conf.j2
- path: 10-mail.conf
- - template: 10-master.conf.j2
- path: 10-master.conf
- - template: 10-auth.conf.j2
- path: 10-auth.conf
- - template: 10-ssl.conf.j2
- path: 10-ssl.conf
- - template: 15-mailboxes.conf.j2
- path: 15-mailboxes.conf
- - template: auth-ldap.conf.ext.j2
- path: auth-ldap.conf.ext
+ - 10-mail.conf
+ - 10-master.conf
+ - 10-auth.conf
+ - 10-ssl.conf
+ - 15-mailboxes.conf
+ - auth-ldap.conf.ext
tags:
- role::dovecot
notify: