Merge pull request #10 from dverhelst/bug/idempotent_cron

As per Ansible 2.3 it's possible to use seed from the inventory hostname
This commit is contained in:
Luc Stroobant 2018-08-29 20:43:13 +02:00 committed by GitHub
commit 9abce45afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ borgbackup_retention:
yearly: 1
borgbackup_cron_day: "*"
borgbackup_cron_hour: "{{ 5|random }}"
borgbackup_cron_minute: "{{ 59|random }}"
borgbackup_cron_hour: "{{ 5|random(seed=inventory_hostname) }}"
borgbackup_cron_minute: "{{ 59|random(seed=inventory_hostname) }}"
borgbackup_appendonly: False
borgbackup_appendonly_repoconfig: False