ansible-role-cron/README.md
2020-06-11 00:20:09 +02:00

47 lines
836 B
Markdown

# Cron
All configuration is to be placed inside the `cron` dict.
```
# <name>: *jobconfig*
jobs: {}
# defaults for all jobs, see *jobconfig*
defaults:
user: root
weekday: '*'
hour: '*'
minute: '*'
special_time: False
random_options:
weekday: "{{ range(6)|list }}"
hour: "{{ range(1, 22)|list }}"
minute: "{{ range(5, 50)|list }}"
```
**jobconfig**
```
# user to run job as
user: root
# actual job to run
job: ''
# weekday to run job at
weekday: '*'
# hour to run job at
hour: '*'
# minute to run job at
minute: '*'
# can be False or (mutaly exclusive with weekday/hour/minute) one of 'random_daily' or 'random_weekly'
special_time: False
# options if 'special_time' is not False
random_options:
weekday: "{{ range(6)|list }}"
hour: "{{ range(1, 22)|list }}"
minute: "{{ range(5, 50)|list }}"
```