feat: Add borgmatic actions
This commit is contained in:
parent
18828d33bf
commit
ffb2faf926
@ -32,4 +32,6 @@ borgmatic_name: "{{ inventory_hostname }}_{now}"
|
||||
borgmatic_compression: none
|
||||
borgmatic_passphrase: ""
|
||||
|
||||
borgmatic_actions: {}
|
||||
|
||||
borgmatic_restore_first: false
|
||||
|
@ -44,7 +44,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=,o=
|
||||
validate: borgmatic config validate --config %s
|
||||
# validate: borgmatic config validate --config %s
|
||||
become: true
|
||||
notify: Créer le dépôt
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=borgmatic backup
|
||||
Wants=network-online.target
|
||||
|
@ -1,3 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Run borgmatic backup
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# {{ ansible_managed }}
|
||||
|
||||
repositories:
|
||||
{% for repository in borgmatic_repositories %}
|
||||
@ -38,3 +39,9 @@ healthchecks:
|
||||
keep_daily: {{ borgmatic_retention.daily }}
|
||||
keep_monthly: {{ borgmatic_retention.monthly }}
|
||||
keep_weekly: {{ borgmatic_retention.weekly }}
|
||||
|
||||
{% if borgmatic_actions | length > 0 %}
|
||||
{% for param, value in borgmatic_actions.items() %}
|
||||
{{ param }}: {{ value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user