diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-07-10 04:53:37 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-07-10 04:53:37 +0200 |
commit | 1b744e0e6320dabaa62bc369addf7f0b89cdc107 (patch) | |
tree | 3eb27aff57c782ac3861d0d073e22f67ddf6532d /roles/MX/tasks/main.yml | |
parent | d77dcf0bddcd46971f0bb6d2b07d45f92e7f837c (diff) |
Postfix: don't share the master.cf between the instances.
Diffstat (limited to 'roles/MX/tasks/main.yml')
-rw-r--r-- | roles/MX/tasks/main.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/MX/tasks/main.yml b/roles/MX/tasks/main.yml index c8853be..1d08734 100644 --- a/roles/MX/tasks/main.yml +++ b/roles/MX/tasks/main.yml @@ -1,36 +1,39 @@ - name: Install Postfix apt: pkg={{ item }} with_items: - postfix - postfix-pcre - postfix-ldap - postfix-cdb # The following is for reserved-alias.pl - libnet-ldap-perl - libauthen-sasl-perl - name: Configure Postfix - template: src=etc/postfix/main.cf.j2 - dest=/etc/postfix-{{ postfix_instance[inst].name }}/main.cf + 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: Create directory /etc/postfix-.../virtual file: path=/etc/postfix-{{ postfix_instance[inst].name }}/virtual state=directory owner=root group=root mode=0755 # trivial-rewrite(8) runs in a chroot. We create an empty # /usr/lib/sasl2 to avoid "No such file or directory" warnings. # Cf. also #738989. - name: Create directory /usr/lib/sasl2 file: path=/var/spool/postfix-{{ postfix_instance[inst].name }}/{{ item }} state=directory owner=root group=root mode=0755 with_items: - /usr/lib/sasl2 - /usr/lib/{{ ansible_architecture }}-linux-gnu/sasl2 |