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

@ -4,6 +4,10 @@
name: rsyslog
state: restarted
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: true
- name: reload postfix
ansible.builtin.service:
name: postfix
@ -14,11 +18,6 @@
name: postfix
state: restarted
- name: reload monit
ansible.builtin.service:
name: monit
state: reloaded
- name: Get certificate
command: dehydrated --cron -g
delegate_to: "{{ gateway_host }}"