ansible-role-postfix_mta/tasks/main.yml

23 lines
368 B
YAML
Raw Normal View History

2019-03-05 12:44:14 +00:00
---
- 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