From 9f202da988e6ee128c959c055ee765bcd02c7e8d Mon Sep 17 00:00:00 2001 From: Drazen Date: Thu, 28 Nov 2024 13:41:26 +0100 Subject: [PATCH 1/2] Updating-crons-mailto --- roles/cron/cron_drupal7/defaults/main.yml | 4 +++- roles/cron/cron_drupal7/tasks/job.yml | 1 + roles/cron/cron_drupal8/defaults/main.yml | 1 + roles/cron/cron_drupal8/tasks/job.yml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/cron/cron_drupal7/defaults/main.yml b/roles/cron/cron_drupal7/defaults/main.yml index 419e9c4b..4dc29105 100644 --- a/roles/cron/cron_drupal7/defaults/main.yml +++ b/roles/cron/cron_drupal7/defaults/main.yml @@ -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" \ No newline at end of file + drush_location: "{{ drush_bin }}" # you might specify another location, e.g. "{{ deploy_path }}/vendor/bin/drush" diff --git a/roles/cron/cron_drupal7/tasks/job.yml b/roles/cron/cron_drupal7/tasks/job.yml index b89a0b05..f2eb2ff7 100644 --- a/roles/cron/cron_drupal7/tasks/job.yml +++ b/roles/cron/cron_drupal7/tasks/job.yml @@ -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 }}" diff --git a/roles/cron/cron_drupal8/defaults/main.yml b/roles/cron/cron_drupal8/defaults/main.yml index 9d4b90f6..a2e7072c 100644 --- a/roles/cron/cron_drupal8/defaults/main.yml +++ b/roles/cron/cron_drupal8/defaults/main.yml @@ -12,6 +12,7 @@ drupal: # month: job: cron # disabled: true + mailto: "{{ drupal.cron_mailto | default('') }}" # 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] diff --git a/roles/cron/cron_drupal8/tasks/job.yml b/roles/cron/cron_drupal8/tasks/job.yml index 7fa23c3e..77f3c6ae 100644 --- a/roles/cron/cron_drupal8/tasks/job.yml +++ b/roles/cron/cron_drupal8/tasks/job.yml @@ -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 }}" From a3b95fe915e0c2edbcab1be027c3908baf7027ab Mon Sep 17 00:00:00 2001 From: Drazen Date: Thu, 28 Nov 2024 13:49:42 +0100 Subject: [PATCH 2/2] Forgot-variable-drupal8 --- roles/cron/cron_drupal8/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/cron/cron_drupal8/defaults/main.yml b/roles/cron/cron_drupal8/defaults/main.yml index a2e7072c..4dc29105 100644 --- a/roles/cron/cron_drupal8/defaults/main.yml +++ b/roles/cron/cron_drupal8/defaults/main.yml @@ -13,6 +13,7 @@ drupal: 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]