mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
chore(restic): add optional unlock step before check
fixes: https://github.com/famedly/infra-meta/issues/1525
This commit is contained in:
parent
b757f65f0f
commit
44a79890d5
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,8 @@ restic_backup_paths: []
|
|||
restic_backup_commands: []
|
||||
restic_backup_parameters: {}
|
||||
|
||||
restic_stale_unlock: true
|
||||
|
||||
restic_systemd_user: root
|
||||
restic_systemd_unit_name: "restic"
|
||||
restic_systemd_service_name: "{{ restic_systemd_unit_name }}.service"
|
||||
|
|
|
@ -35,6 +35,9 @@ ExecStart={{ restic_binary }} backup {{ restic_backup_paths | join(' ') }}{% if
|
|||
{% endif %}
|
||||
|
||||
ExecStartPost=-{{ restic_binary }} snapshots
|
||||
{% if restic_stale_unlock -%}
|
||||
ExecStartPost={{ restic_binary }} unlock
|
||||
{% endif -%}
|
||||
ExecStartPost={{ restic_binary }} check
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in a new issue