Restart postfix service via systemd
The mta-sts service already uses Restart=on-failure
This commit is contained in:
parent
53f2925435
commit
ec695da167
6 changed files with 17 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue