From 46c8b82a575a691f805a89653f0cf06fd3984cfb Mon Sep 17 00:00:00 2001 From: Otthorn Date: Thu, 28 Jan 2021 00:11:36 +0100 Subject: [PATCH] Config outside of conf.d --- roles/dovecot/tasks/main.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/roles/dovecot/tasks/main.yml b/roles/dovecot/tasks/main.yml index 74669f9..053e154 100644 --- a/roles/dovecot/tasks/main.yml +++ b/roles/dovecot/tasks/main.yml @@ -40,15 +40,27 @@ group: vmail mode: 0770 -# Add the Dovecot configuration files -- name: Add Dovecot configuration +# Add the Dovecot configuration files (conf.d) +- name: Add Dovecot configuration in conf.d template: src: "{{ item }}.j2" dest: "/etc/dovecot/conf.d/{{ item }}" mode: 0644 - notify: Reload dovecot loop: - "10-auth.conf" - "10-mail.conf" - "10-master.conf" - "10-ssl.conf" + - "10-loggin.conf" + - "auth-system.conf.ext" + notify: Reload dovecot + +# Add the Dovecot configuration file outside of conf.d +- name: Add Dovecot configuration outside of conf.d + template: + src: "dovecot-ldap.conf.ext.j2" + dest: "/etc/dovecot/dovecot-ldap-conf.ext" + mode: 0600 # only legible by root + owner: root + mode: root + notify: Reload dovecot