forked from evolix/ansible-roles
1f8738fbda
postfix: * Move common packages installation in common.yml * Replace ansible_fqdn by evolinux_fqdn, set postfix_slow_transport_include to false by default (only for packmails and packwebs) * Remove dependency on evolinux_fqdn var * Do not overwrite main.cf if it has been modified (except if postfix_force_main_cf) evolinux-base: * Move exim4 purge from evolinux-base to postfix role * Call postfix role call after nagios role (dependency)
19 lines
422 B
YAML
19 lines
422 B
YAML
---
|
|
|
|
- name: display checksums of known main.cf files
|
|
debug:
|
|
var: main_cf_known_checksums
|
|
|
|
- name: create minimal main.cf
|
|
ansible.builtin.template:
|
|
src: evolinux_main.cf.j2
|
|
dest: /etc/postfix/main.cf
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
force: true
|
|
notify: restart postfix
|
|
when: (postfix_force_main_cf | bool) or (main_cf_checksum.stdout in main_cf_known_checksums)
|
|
tags:
|
|
- postfix
|