2020-05-01 17:14:48 +00:00
|
|
|
---
|
|
|
|
- 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 }}"
|
2020-05-01 17:21:46 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|