15 lines
406 B
YAML
15 lines
406 B
YAML
- include_vars: postfix.yml
|
|
|
|
- name: Install Postfix MTA
|
|
apt: name=postfix state=latest
|
|
|
|
- name: Configure Postfix main.cf
|
|
template: src=postfix/main.cf.j2 dest=/etc/postfix/main.cf mode=0644 owner=root group=root
|
|
notify:
|
|
- restart postfix
|
|
|
|
- name: Configure Postfix /etc/mailname
|
|
template: src=postfix/mailname.j2 dest=/etc/mailname mode=0644 owner=root group=root
|
|
notify:
|
|
- restart postfix
|