forked from infra/ansible
23 lines
482 B
YAML
23 lines
482 B
YAML
---
|
|
|
|
- name: Install packages
|
|
apt: name={{ item }} state=present
|
|
with_items:
|
|
- postfix
|
|
- dovecot-core
|
|
- dovecot-ldap
|
|
|
|
- name: Configure postfix
|
|
copy: src=master.cf dest=/etc/postfix/master.cf
|
|
notify: restart postfix
|
|
|
|
- name: Configure postfix
|
|
template: src=main.cf.j2 dest=/etc/postfix/main.cf
|
|
notify: restart postfix
|
|
|
|
- name: Start dovecot
|
|
service: name=dovecot state=started enabled=yes
|
|
|
|
- name: Start postfix
|
|
service: name=postfix state=started enabled=yes
|