xoxys.ucs/tasks/cron.yml
Robert Kaussow 5d66f6e5a7
All checks were successful
continuous-integration/drone/push Build is passing
add custom cronjobs
2020-05-01 19:14:48 +02:00

17 lines
521 B
YAML

---
- name: Setup custom cronjobs
cron:
name: "{{ item.name }}"
minute: "{{ item.minute | default(0) }}"
hour: "{{ item.hour | default(3) }}"
day: "{{ item.day | default('*') }}"
weekday: "{{ item.weekday | default('*') }}"
month: "{{ item.month | default('*') }}"
user: "{{ item.user | default('root') }}"
cron_file: univention-custom
job: "{{ item.job }}"
state: "{{ item.state | default('present') }}"
loop: "{{ ucs_cronjobs }}"
loop_control:
label: "{{ item.name }}"