Files
ansible-role-common/tasks/postfix.yml
Daniel A. Maierhofer 5f0def1920 Add --- where missing
2018-03-11 23:36:09 +01:00

14 lines
350 B
YAML

---
- name: install postfix
package: name="postfix" state=present
- name: postfix config
template: dest="/etc/postfix/{{ item }}" src="postfix/{{ item }}.j2" owner=root group=root mode=0644
with_items:
- main.cf
- master.cf
notify: restart mailer
- name: postfix - start and enable
service: name=postfix state=started enabled=yes