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
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue