[mailman] Disable cron mails for staging

It's spamming a lot lately as I'm working on new deployment, let's disable the
mails for now.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-03-14 17:42:24 +01:00
parent 6d0370a0dc
commit 60dc16d7c9

View file

@ -2,6 +2,10 @@
# Replace "apache" by your webserver user ("www-data" on Debian systems) and
# set the path to the Django project directory
{% if env == 'staging' %}
MAILTO=""
{% endif %}
{% if ansible_hostname == 'mailman01' %}
@hourly apache django-admin runjobs hourly --pythonpath {{ mailman_webui_confdir }} --settings settings
@daily apache django-admin runjobs daily --pythonpath {{ mailman_webui_confdir }} --settings settings