ansible-roles/postfix-relay/tasks/smtp-common-packages.yml

16 lines
363 B
YAML
Raw Normal View History

---
- name: Install postfix and libsas to do mail relay
action: apt pkg={{ item }} state=present
with_items:
- postfix
- libsasl2-2
tags:
- postfix-relay
- name: Write the postfix main configuration file
template: src=main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root mode=0444
notify: Restart postfix
tags:
- postfix-relay