2023-03-20 20:01:04 +01:00
|
|
|
---
|
2023-04-27 07:31:46 +02:00
|
|
|
- name: "Monitoring | Setup cron job for pflogsum"
|
|
|
|
ansible.builtin.cron:
|
|
|
|
name: "Daily pflogsum statistics"
|
2023-04-27 07:40:50 +02:00
|
|
|
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
|