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