From ae1ce29166beb400aa138c627da45d843aca6539 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Wed, 17 Aug 2016 17:48:19 +0200 Subject: [PATCH] add names to tasks in postfix role --- roles/postfix/tasks/main.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/roles/postfix/tasks/main.yaml b/roles/postfix/tasks/main.yaml index fb432d3..7fe957c 100644 --- a/roles/postfix/tasks/main.yaml +++ b/roles/postfix/tasks/main.yaml @@ -20,30 +20,33 @@ # TODO: log, add a centralized log server - rsyslog -- name: upload ldap-aliases.cf +- name: configure ldap-aliases for postfix template: src: ldap-aliases.cf.j2 dest: "/etc/postfix/ldap-aliases.cf" notify: restart postfix -- lineinfile: dest=/etc/postfix/main.cf line="virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-aliases.cf" +- name: configure ldap-aliases for postfix + lineinfile: dest=/etc/postfix/main.cf line="virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-aliases.cf" notify: restart postfix -- name: upload ldap-domains.cf +- name: configure ldap-domains for postfix template: src: ldap-domains.cf.j2 dest: "/etc/postfix/ldap-domains.cf" notify: restart postfix -- lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-domains.cf" +- name: provide postfix mailbox domains from ldap-domains + lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-domains.cf" notify: restart postfix -- name: upload ldap-accounts.cf +- name: provide postfix users from ldap-accounts template: src: ldap-accounts.cf.j2 dest: "/etc/postfix/ldap-accounts.cf" notify: restart postfix +- name: configure ldap-accounts for postfix - lineinfile: dest=/etc/postfix/main.cf line="virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-accounts.cf" notify: restart postfix