Add cron job for Drupal cron

This commit is contained in:
Oliver Davies 2020-05-19 01:33:55 +01:00
parent cb99713cad
commit 9f721ef354

View file

@ -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