Merge "borg-backup: randomise time on a per-server basis"
This commit is contained in:
commit
74713e4d31
@ -67,7 +67,7 @@
|
|||||||
# This should space out the backups so they run in a round-robbin
|
# This should space out the backups so they run in a round-robbin
|
||||||
# evenly through the day to each of the different backup servers
|
# evenly through the day to each of the different backup servers
|
||||||
hour: '{{ ((5 + ((24 / ansible_loop.length) * ansible_loop.index0 )) % 24) | int}}'
|
hour: '{{ ((5 + ((24 / ansible_loop.length) * ansible_loop.index0 )) % 24) | int}}'
|
||||||
minute: '{{ 59|random(seed=item) }}'
|
minute: '{{ 59|random(seed=inventory_hostname) }}'
|
||||||
with_inventory_hostnames: borg-backup-server
|
with_inventory_hostnames: borg-backup-server
|
||||||
loop_control:
|
loop_control:
|
||||||
extended: yes
|
extended: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user