Add conditionals to disable tasks dor intenal mail servers

This commit is contained in:
phil 2023-04-19 15:14:03 +02:00
parent df43829b66
commit 5d6c3e0f77
4 changed files with 6 additions and 1 deletions

View file

@ -74,6 +74,7 @@
community.crypto.openssl_dhparam:
path: "{{ postfix_dhparam_file }}"
size: 4096
when: postfix_type == "internet"
- name: "Postfix | Setup cron job for pflogsum"
ansible.builtin.cron:
@ -81,3 +82,4 @@
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"
when: postfix_pflogsum_enabled