mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-09-20 06:11:58 +00:00
fix(restic): use RandomizedDelaySec
The previously used AccuracySec is the wrong option to distribute timer activations. See https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#RandomizedDelaySec=
This commit is contained in:
parent
1be86920bd
commit
c668936178
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ restic_systemd_working_directory: "/tmp"
|
|||
restic_systemd_syslog_identifier: "{{ restic_systemd_unit_name }}"
|
||||
|
||||
restic_systemd_timer_on_calendar: daily
|
||||
restic_systemd_timer_accuracy_sec: 3600
|
||||
restic_systemd_timer_randomized_delay_sec: 3600
|
||||
restic_systemd_timer_persistent: true
|
||||
restic_systemd_timer_description: >-
|
||||
Run {{ restic_systemd_unit_name }}.service on schedule
|
||||
|
|
|
@ -3,7 +3,7 @@ Description={{ restic_systemd_timer_description }}
|
|||
|
||||
[Timer]
|
||||
OnCalendar={{ restic_systemd_timer_on_calendar }}
|
||||
AccuracySec={{ restic_systemd_timer_accuracy_sec }}
|
||||
RandomizedDelaySec={{ restic_systemd_timer_randomized_delay_sec }}
|
||||
Persistent={{ restic_systemd_timer_persistent | ternary('True', 'False') }}
|
||||
Unit={{ restic_systemd_service_name }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue