From 81847c17369d92b3826dfda01405cfbe90badb80 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 21 Mar 2017 11:34:25 -0400 Subject: [PATCH] public_facing: Add cronjobs for www.ceph.com Signed-off-by: David Galloway --- roles/public_facing/tasks/www.ceph.com.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roles/public_facing/tasks/www.ceph.com.yml diff --git a/roles/public_facing/tasks/www.ceph.com.yml b/roles/public_facing/tasks/www.ceph.com.yml new file mode 100644 index 00000000..26dfbe6a --- /dev/null +++ b/roles/public_facing/tasks/www.ceph.com.yml @@ -0,0 +1,26 @@ +--- +- name: Cron entry for letsencrypt cert renewal + cron: + name: "Renew letsencrypt certificate" + minute: "0" + hour: "0" + day: "1,15" + job: "/usr/bin/letsencrypt renew >> /var/log/letsencrypt.log" + +- name: Cron entry for reloading nginx + cron: + name: "Reload nginx to keep SSL cert updated" + minute: "5" + hour: "0" + day: "1,15" + job: "/bin/systemctl reload nginx" + +# Wordpress has its own cron system that only runs queued jobs when the site +# is visited. We want certain jobs to run regardless of page visits. +# 5 minutes was used because that's the most frequent any job is queued. +# See http://docs.wprssaggregator.com/cron-intervals/#getting-around-the-limitations +- name: Cron entry for Wordpress cron + cron: + name: "Call wp-cron.php to run Wordpress cronjobs" + minute: "*/5" + job: "/usr/bin/wget -q -O - http://ceph.com/wp-cron.php?doing_wp_cron" -- 2.47.3