Fix quotation, configure cron times via variables

This commit is contained in:
phil 2023-04-23 08:09:47 +02:00
parent 6476a23c02
commit a370641d6b
2 changed files with 5 additions and 2 deletions

View file

@ -6,6 +6,9 @@ fail2ban_filter_dir: /etc/fail2ban/filter.d
mail_sasl_log: mail-sasl.log
pflogsum_cron_hour: "06"
pflogsum_cron_minute: "24"
postfix_conf_dir: /etc/postfix/conf.d
postfix_daemon_dir: /usr/lib/postfix/sbin
postfix_default_db_type: cdb

View file

@ -80,6 +80,6 @@
ansible.builtin.cron:
name: "Daily pflogsum statistics"
job: /usr/sbin/pflogsumm --detail 8 --problems-first --no-no-msg-size --reject-detail 12 /var/log/mail.log.1 | mail -s "{{ postfix_pflogsum_mail_subject }} ({{ inventory_hostname }})" {{ postfix_pflogsum_recipient }}
hour: "06"
minute: "24"
hour: "{{ pflogsum_cron_hour }}"
minute: "{{ pflogsum_cron_minute }}"
when: postfix_pflogsum_enabled