Browse Source

add names to tasks in postfix role

static_group_user_dovecot
Edoardo Putti 8 years ago
parent
commit
ae1ce29166
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      roles/postfix/tasks/main.yaml

+ 8
- 5
roles/postfix/tasks/main.yaml View File

@ -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


Loading…
Cancel
Save