Skip to content

Commit ad3165c

Browse files
authored
Updating-crons-mailto (#506)
* Updating-crons-mailto * Forgot-variable-drupal8
1 parent 747ec29 commit ad3165c

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

roles/cron/cron_drupal7/defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ drupal:
1212
# month:
1313
job: cron
1414
# disabled: true
15+
mailto: "{{ drupal.cron_mailto | default('') }}"
16+
cron_mailto: ""
1517
# 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.
1618
defer: false
1719
# 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]
1820
defer_target: ""
19-
drush_location: "{{ drush_bin }}" # you might specify another location, e.g. "{{ deploy_path }}/vendor/bin/drush"
21+
drush_location: "{{ drush_bin }}" # you might specify another location, e.g. "{{ deploy_path }}/vendor/bin/drush"

roles/cron/cron_drupal7/tasks/job.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
job: "{{ _cron_job_command }}"
3232
state: present
3333
disabled: "{{ entry.disabled | default(omit) }}"
34+
mailto: "{{ entry.mailto if entry.mailto is defined else omit }}"
3435
delegate_to: "{{ 'localhost' if drupal.defer else inventory_hostname }}"

roles/cron/cron_drupal8/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ drupal:
1212
# month:
1313
job: cron
1414
# disabled: true
15+
mailto: "{{ drupal.cron_mailto | default('') }}"
16+
cron_mailto: ""
1517
# 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.
1618
defer: false
1719
# 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]

roles/cron/cron_drupal8/tasks/job.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@
3737
job: "{{ _cron_job_command }}"
3838
state: present
3939
disabled: "{{ entry.disabled | default(omit) }}"
40+
mailto: "{{ entry.mailto if entry.mailto is defined else omit }}"
4041
delegate_to: "{{ 'localhost' if drupal.defer else inventory_hostname }}"

0 commit comments

Comments
 (0)