ansible-role-postfix/tasks/monitoring.yml
phil ec695da167 Restart postfix service via systemd
The mta-sts service already uses Restart=on-failure
2023-11-03 21:37:22 +01:00

8 lines
417 B
YAML

---
- name: "Monitoring | Setup cron job for pflogsum"
ansible.builtin.cron:
name: "Daily pflogsum statistics"
job: '/usr/sbin/pflogsumm {{ pflogsumm_options }} {{ pflogsumm_file }} | mail -s "{{ postfix_pflogsumm_mail_subject }} ({{ inventory_hostname }})" {{ postfix_pflogsumm_recipient }}'
hour: "{{ pflogsumm_cron_hour }}"
minute: "{{ pflogsumm_cron_minute }}"
when: postfix_pflogsumm_enabled