From 8e16db895142169c6a21e31f2b5851a4d9192b47 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 18 Apr 2016 17:35:30 +0000 Subject: [PATCH] Add a daily cron email send job for askbot. Fixes ticket 5241 --- roles/ask/files/cron-post-office-send-daily | 1 + roles/ask/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) create mode 100644 roles/ask/files/cron-post-office-send-daily diff --git a/roles/ask/files/cron-post-office-send-daily b/roles/ask/files/cron-post-office-send-daily new file mode 100644 index 0000000000..53350266d6 --- /dev/null +++ b/roles/ask/files/cron-post-office-send-daily @@ -0,0 +1 @@ +0 6 * * * root /usr/bin/python /etc/askbot/sites/ask/config/manage.py send_email_alerts > /dev/null 2> /dev/null diff --git a/roles/ask/tasks/main.yml b/roles/ask/tasks/main.yml index 02a37e19e0..3465dbc559 100644 --- a/roles/ask/tasks/main.yml +++ b/roles/ask/tasks/main.yml @@ -109,6 +109,7 @@ with_items: - cron-ask-send-reminders - cron-post-office-send-mail + - cron-post-office-send-daily - cron-delete-old-emails - cron-delete-unused-tags when: inventory_hostname.startswith('ask01')