Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion roles/cron/cron_drupal7/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ drupal:
# month:
job: cron
# disabled: true
mailto: "{{ drupal.cron_mailto | default('') }}"
cron_mailto: ""
# If the sites are being deployed to an ASG, setting defer to true will create the crontab entry on the deploy server rather than all of the app servers.
defer: false
# If defer is set to true, the Ansible target must be declared with defer_target. If using a group, include the index. For example, _ce_www_dev[0]
defer_target: ""
drush_location: "{{ drush_bin }}" # you might specify another location, e.g. "{{ deploy_path }}/vendor/bin/drush"
drush_location: "{{ drush_bin }}" # you might specify another location, e.g. "{{ deploy_path }}/vendor/bin/drush"
1 change: 1 addition & 0 deletions roles/cron/cron_drupal7/tasks/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
job: "{{ _cron_job_command }}"
state: present
disabled: "{{ entry.disabled | default(omit) }}"
mailto: "{{ entry.mailto if entry.mailto is defined else omit }}"
delegate_to: "{{ 'localhost' if drupal.defer else inventory_hostname }}"
2 changes: 2 additions & 0 deletions roles/cron/cron_drupal8/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ drupal:
# month:
job: cron
# disabled: true
mailto: "{{ drupal.cron_mailto | default('') }}"
cron_mailto: ""
# If the sites are being deployed to an ASG, setting defer to true will create the crontab entry on the deploy server rather than all of the app servers.
defer: false
# If defer is set to true, the Ansible target must be declared with defer_target. If using a group, include the index. For example, _ce_www_dev[0]
Expand Down
1 change: 1 addition & 0 deletions roles/cron/cron_drupal8/tasks/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@
job: "{{ _cron_job_command }}"
state: present
disabled: "{{ entry.disabled | default(omit) }}"
mailto: "{{ entry.mailto if entry.mailto is defined else omit }}"
delegate_to: "{{ 'localhost' if drupal.defer else inventory_hostname }}"
Loading