diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/IMAP/tasks/mda.yml | 2 | ||||
-rw-r--r-- | roles/MSA/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/lists/tasks/mail.yml | 2 | ||||
-rw-r--r-- | roles/out/tasks/main.yml | 6 |
4 files changed, 8 insertions, 3 deletions
diff --git a/roles/IMAP/tasks/mda.yml b/roles/IMAP/tasks/mda.yml index f705fe7..0e8690d 100644 --- a/roles/IMAP/tasks/mda.yml +++ b/roles/IMAP/tasks/mda.yml @@ -1,26 +1,26 @@ - name: Install Postfix apt: pkg={{ packages }} vars: packages: - postfix - - postfix-ldap + - postfix-lmdb - name: Configure Postfix template: src=etc/postfix/{{ item }}.j2 dest=/etc/postfix-{{ postfix_instance[inst].name }}/{{ item }} owner=root group=root mode=0644 with_items: - main.cf - master.cf notify: - Reload Postfix - name: Copy the transport and recipient canonical maps copy: src=etc/postfix/{{ item }} dest=/etc/postfix-{{ postfix_instance[inst].name }}/{{ item }} owner=root group=root mode=0644 with_items: # no need to reload upon change, as cleanup(8) is short-running - recipient_canonical.pcre diff --git a/roles/MSA/tasks/main.yml b/roles/MSA/tasks/main.yml index 2eee925..4b38974 100644 --- a/roles/MSA/tasks/main.yml +++ b/roles/MSA/tasks/main.yml @@ -1,25 +1,26 @@ - name: Install Postfix apt: pkg={{ packages }} vars: packages: - postfix + - postfix-lmdb - postfix-pcre - postfix-policyd-spf-python - name: Install Net::LDAP and Authen::SASL apt: pkg={{ packages }} vars: packages: - libnet-ldap-perl - libauthen-sasl-perl - name: Copy Postfix sender login socketmap copy: src=usr/local/bin/postfix-sender-login.pl dest=/usr/local/bin/postfix-sender-login.pl owner=root group=staff mode=0755 - name: Create '_postfix-sender-login' user user: name=_postfix-sender-login system=yes group=nogroup createhome=no diff --git a/roles/lists/tasks/mail.yml b/roles/lists/tasks/mail.yml index 44b96e5..2821b02 100644 --- a/roles/lists/tasks/mail.yml +++ b/roles/lists/tasks/mail.yml @@ -1,26 +1,26 @@ - name: Install Postfix apt: pkg={{ packages }} vars: packages: - postfix - - postfix-ldap + - postfix-lmdb - name: Configure Postfix template: src=etc/postfix/{{ item }}.j2 dest=/etc/postfix-{{ postfix_instance[inst].name }}/{{ item }} owner=root group=root mode=0644 with_items: - main.cf - master.cf notify: - Reload Postfix - name: Copy the transport maps copy: src=etc/postfix/transport dest=/etc/postfix-{{ postfix_instance[inst].name }}/transport owner=root group=root mode=0644 # no need to reload upon change, as cleanup(8) is short-running - name: Compile the Postfix transport maps diff --git a/roles/out/tasks/main.yml b/roles/out/tasks/main.yml index 0e64443..48c162a 100644 --- a/roles/out/tasks/main.yml +++ b/roles/out/tasks/main.yml @@ -1,22 +1,26 @@ - name: Install Postfix - apt: pkg=postfix + apt: pkg={{ packages }} + vars: + packages: + - postfix + - postfix-lmdb - name: Configure Postfix template: src=etc/postfix/{{ item }}.j2 dest=/etc/postfix-{{ postfix_instance[inst].name }}/{{ item }} owner=root group=root mode=0644 with_items: - main.cf - master.cf notify: - Reload Postfix - name: Copy the canonical maps template: src=etc/postfix/canonical.j2 dest=/etc/postfix-{{ postfix_instance[inst].name }}/canonical owner=root group=root mode=0644 - name: Compile the canonical maps # no need to reload upon change, as cleanup(8) is short-running |