2017-10-27 11:52:03 +02:00
|
|
|
---
|
|
|
|
- name: ensure packages are installed
|
|
|
|
apt:
|
2019-12-31 15:25:10 +01:00
|
|
|
name: postfix
|
2017-10-27 11:52:03 +02:00
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
|
|
|
|
- name: create minimal main.cf
|
|
|
|
template:
|
|
|
|
src: evolinux_main.cf.j2
|
|
|
|
dest: /etc/postfix/main.cf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
|
|
|
force: yes
|
|
|
|
notify: restart postfix
|
2021-05-09 23:06:42 +02:00
|
|
|
when: (postfix_force_main_cf | bool) or (postfix_maincf_md5_jessie in default_main_cf.stdout) or (postfix_maincf_md5_stretch in default_main_cf.stdout)
|
2017-10-27 11:52:03 +02:00
|
|
|
tags:
|
|
|
|
- postfix
|