Add basic LDAP config for recipients and senders
This commit is contained in:
parent
660b1900c8
commit
782a07a450
5 changed files with 46 additions and 12 deletions
|
|
@ -1,23 +1,23 @@
|
|||
- name: install postfix
|
||||
apt:
|
||||
pkg: postfix
|
||||
pkg:
|
||||
- postfix
|
||||
- postfix-ldap
|
||||
|
||||
- name: remove exim4 package
|
||||
apt:
|
||||
name: exim4
|
||||
state: absent
|
||||
|
||||
- name: copy main.cf
|
||||
- name: copy postfix config
|
||||
template:
|
||||
src: main.cf.j2
|
||||
dest: /etc/postfix/main.cf
|
||||
notify:
|
||||
- restart postfix
|
||||
|
||||
- name: copy master.cf
|
||||
template:
|
||||
src: master.cf.j2
|
||||
dest: /etc/postfix/master.cf
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: "main.cf.j2", dest: "/etc/postfix/main.cf" }
|
||||
- { src: "master.cf.j2", dest: "/etc/postfix/master.cf" }
|
||||
- { src: "virtual-senders.cf.j2", dest: "/etc/postfix/virtual-senders.cf" }
|
||||
- { src: "virtual-recipients.cf.j2", dest: "/etc/postfix/virtual-recipients.cf" }
|
||||
notify:
|
||||
- restart postfix
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue