Prevent borgmatic_cron_checks_day from becoming 0. By @wolfskaempf (#44)

borgmatic_cron_checks_day could become 0 in the previous configuration, causing cron to reject the /etc/cron.d/borgmatic vile
This commit is contained in:
Tom Wolfskämpf 2020-11-30 01:06:04 +01:00 committed by GitHub
parent 5c67c0d935
commit 30981f3d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,6 @@ bb_repo_name: "{{ inventory_hostname }}"
bb_sshkey: "{{ root_user['ssh_public_key'] }}" bb_sshkey: "{{ root_user['ssh_public_key'] }}"
borgmatic_cron_hour: "{{ 6 | random }}" borgmatic_cron_hour: "{{ 6 | random }}"
borgmatic_cron_minute: "{{ 59 | random }}" borgmatic_cron_minute: "{{ 59 | random }}"
borgmatic_cron_checks_day: "{{ 28 | random }}" borgmatic_cron_checks_day: "{{ range(1, 28) | random }}"
borgmatic_cron_checks_hour: "{{ range(7, 24) | random }}" borgmatic_cron_checks_hour: "{{ range(7, 24) | random }}"
borgmatic_cron_checks_minute: "{{ 59 | random }}" borgmatic_cron_checks_minute: "{{ 59 | random }}"