mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 00:08:02 +01:00
add root cron
This commit is contained in:
parent
be4f566d37
commit
fba7d9cf9c
1 changed files with 27 additions and 0 deletions
27
playbooks/system/cron-root.yaml
Normal file
27
playbooks/system/cron-root.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Setup root crontab
|
||||
hosts: servers
|
||||
become: true
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Cron - Restic backup
|
||||
ansible.builtin.cron:
|
||||
name: restic backup
|
||||
minute: 0
|
||||
job: /mnt/data/bin/healthcheck restic-backup /mnt/data/bin/restic-backup
|
||||
- name: Cron - Restic prune
|
||||
ansible.builtin.cron:
|
||||
name: restic prune
|
||||
minute: 30
|
||||
hour: "*/3"
|
||||
job: /mnt/data/bin/healthcheck restic-prune /mnt/data/bin/restic-prune
|
||||
- name: Cron - SMART short
|
||||
ansible.builtin.cron:
|
||||
name: SMART short
|
||||
special_time: weekly
|
||||
job: /mnt/data/bin/smartshort
|
||||
- name: Cron - SMART long
|
||||
ansible.builtin.cron:
|
||||
name: SMART long
|
||||
special_time: monthly
|
||||
job: /mnt/data/bin/smartlong
|
Loading…
Reference in a new issue