2017-10-27 11:52:03 +02:00
|
|
|
---
|
2024-01-24 11:42:15 +01:00
|
|
|
|
|
|
|
- name: display checksums of known main.cf files
|
|
|
|
debug:
|
|
|
|
var: main_cf_known_checksums
|
2017-10-27 11:52:03 +02:00
|
|
|
|
|
|
|
- name: create minimal main.cf
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2017-10-27 11:52:03 +02:00
|
|
|
src: evolinux_main.cf.j2
|
|
|
|
dest: /etc/postfix/main.cf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "0644"
|
2023-06-28 13:22:59 +02:00
|
|
|
force: true
|
2017-10-27 11:52:03 +02:00
|
|
|
notify: restart postfix
|
2024-01-24 11:42:15 +01:00
|
|
|
when: (postfix_force_main_cf | bool) or (main_cf_checksum.stdout in main_cf_known_checksums)
|
2017-10-27 11:52:03 +02:00
|
|
|
tags:
|
|
|
|
- postfix
|