This commit is contained in:
parent
fb3ee79644
commit
5d66f6e5a7
@ -35,3 +35,16 @@ ucs_registry_extra: []
|
||||
# - path: timeserver
|
||||
# value: "ntp.example.com"
|
||||
# state: present
|
||||
|
||||
ucs_cronjobs: []
|
||||
# @var ucs_cronjobs:example: >
|
||||
# ucs_cronjobs:
|
||||
# - name: backup-cleanup
|
||||
# job: "find /var/univention-backup -mtime +7 -delete"
|
||||
# user: root
|
||||
# minute: 0
|
||||
# hour: 3
|
||||
# day: "*"
|
||||
# weekday: "*"
|
||||
# month: "*"
|
||||
# state: present
|
||||
|
16
tasks/cron.yml
Normal file
16
tasks/cron.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- 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 }}"
|
@ -2,5 +2,6 @@
|
||||
- include_tasks: registry.yml
|
||||
- include_tasks: users_groups.yml
|
||||
- include_tasks: filesystem.yml
|
||||
- include_tasks: cron.yml
|
||||
- import_tasks: tls.yml
|
||||
tags: tls_renewal
|
||||
|
Loading…
Reference in New Issue
Block a user