mg
ffd264e3ec
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#260 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
12 lines
401 B
YAML
12 lines
401 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: remove restic cronjob
|
|
become: yes
|
|
ansible.builtin.cron:
|
|
name: restic
|
|
state: absent
|
|
job: "/usr/local/bin/restic_backup.sh"
|
|
minute: "{{ 59|random(seed=inventory_hostname) }}"
|
|
hour: "{{ restic_cron_hours }}"
|
|
# siehe: https://stackoverflow.com/questions/33379378/idempotence-and-random-variables-in-ansible
|