ansible-role-postfix_mta/tasks/main.yml
2019-03-05 13:44:14 +01:00

22 lines
368 B
YAML

---
- name: install package
apt:
name: postfix
tags: postfix
- name: copy file configuration
template:
src: main.cf.j2
dest: /etc/postfix/main.cf
owner: root
group: root
mode: 0644
notify: reload postfix
tags: postfix
- name: enable and start service
systemd:
name: postfix
enabled: yes
state: started
tags: postfix