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
|
@ -1,20 +1,4 @@
|
|||
---
|
||||
- name: "Monitoring | Enable Monit monitoring for Postfix"
|
||||
ansible.builtin.copy:
|
||||
src: monit/postfix
|
||||
dest: /etc/monit/conf-enabled/postfix
|
||||
mode: "0644"
|
||||
notify: reload monit
|
||||
when: "'monit' in ansible_facts.packages"
|
||||
|
||||
- name: "Monitoring | Enable Monit Monitoring for MTA-STS"
|
||||
ansible.builtin.copy:
|
||||
src: monit/mta-sts-daemon
|
||||
dest: /etc/monit/conf-enabled/mta-sts-daemon
|
||||
mode: "0644"
|
||||
notify: reload monit
|
||||
when: "'monit' in ansible_facts.packages and postfix_type == 'internet'"
|
||||
|
||||
- name: "Monitoring | Setup cron job for pflogsum"
|
||||
ansible.builtin.cron:
|
||||
name: "Daily pflogsum statistics"
|
||||
|
|
|
@ -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