23 lines
368 B
YAML
23 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
|