This repository was archived by the owner on Oct 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.yml
More file actions
25 lines (25 loc) · 1.51 KB
/
main.yml
File metadata and controls
25 lines (25 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
# This role takes its parameters from the "drupal.sites" variables directly.
drupal:
sites:
- folder: "default"
# ... See the _init role for other variables.
cron: # These are the relevant parts for cron.
- minute: "*/{{ 10 | random(start=1) }}"
# hour: 2
# day:
# weekday:
# month:
job: cron
# disabled: true
# mailto: "{{ drupal.cron_mailto | default('') }}" # Each cron can have it's own mailto and can be configured to use different e-mail addresses.
# file: "/etc/cron.d/{{ project_name }}_{{ build_type }}_job_name" # edit job_name and uncomment to create a file for cron - note, deploy user needs to be able to write to the location
# file_user: "{{ deploy_user }}" # if you drop a file you must also supply an owner, usually the deploy user - make sure the deploy user has perms!
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"
python_interpreter: "-e 'ansible_python_interpreter=/home/controller/ce-python/bin/python'"
cron_error_filter: "egrep -i 'error|fail|fatal|critical|exception'"