From 9f721ef3543d3230076d9efc7fb336f439c13a84 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 19 May 2020 01:33:55 +0100 Subject: [PATCH] Add cron job for Drupal cron --- tools/ansible/provision.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/ansible/provision.yml b/tools/ansible/provision.yml index 8f8f04c..81f1778 100644 --- a/tools/ansible/provision.yml +++ b/tools/ansible/provision.yml @@ -22,3 +22,13 @@ package: name: [curl, zip] state: present + + - name: Add cron jobs + cron: + name: Drupal cron - oliverdavies.uk + minute: '*/5' + job: > + {{ project_root_path }}/{{ ansistrano_current_dir }}/vendor/bin/drush core-cron + --root={{ project_root_path }}/{{ ansistrano_current_dir }}/{{ project_web_dir }} + --uri https://www.oliverdavies.uk + --quiet