Restart postfix service via systemd

The mta-sts service already uses Restart=on-failure
This commit is contained in:
phil 2023-11-03 21:37:22 +01:00
parent 53f2925435
commit ec695da167
6 changed files with 17 additions and 37 deletions

View file

@ -79,3 +79,12 @@
path: "{{ postfix_dhparam_file }}"
size: 4096
when: postfix_type == "internet"
- name: "Postfix | Copy systemd override"
ansible.builtin.copy:
src: systemd/override.conf
dest: /etc/systemd/postfix@-.service.d/override.conf
mode: "0644"
notify:
- Reload systemd
- restart postfix