[EVO] Utiliser la nouvelle syntaxe
This commit is contained in:
parent
1a3e44bf11
commit
c2d0254866
@ -36,7 +36,7 @@ Liste des éléments exclus de la sauvegarde.
|
||||
|
||||
### borgmatic_repositories
|
||||
|
||||
Liste des dépôts Borg sur lesquels envoyer la sauvegarde.
|
||||
Dictionnaire contenant le `label` et le `path` des dépôts vers lesquels envoyer la sauvegarde.
|
||||
|
||||
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune*
|
||||
|
||||
|
@ -12,14 +12,22 @@ borgmatic_checks:
|
||||
frequency: 4 weeks
|
||||
- name: extract
|
||||
frequency: 2 weeks
|
||||
|
||||
borgmatic_healthchecks: ""
|
||||
borgmatic_exclude_patterns: []
|
||||
|
||||
borgmatic_repositories: []
|
||||
# Exemple:
|
||||
# - label: default
|
||||
# path: ssh://user@backupserver/./sourcehostname.borg
|
||||
|
||||
borgmatic_source_directories: []
|
||||
|
||||
borgmatic_retention:
|
||||
daily: 7
|
||||
monthly: 0
|
||||
weekly: 4
|
||||
|
||||
borgmatic_name: "{{ inventory_hostname }}_{now}"
|
||||
borgmatic_compression: none
|
||||
borgmatic_passphrase: ""
|
||||
|
@ -25,7 +25,7 @@
|
||||
create: true
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK for role_borgmatic"
|
||||
block: |
|
||||
{% for repository in borgmatic_repositories %}
|
||||
{% for repository in borgmatic_repositories.path %}
|
||||
Host {{ repository | ansible.builtin.urlsplit('hostname') }}
|
||||
IdentityFile /etc/borgmatic/id_ed25519
|
||||
IdentitiesOnly yes
|
||||
|
@ -1,5 +1,16 @@
|
||||
---
|
||||
|
||||
exclude_patterns: {{ borgmatic_exclude_patterns }}
|
||||
source_directories: {{ borgmatic_source_directories }}
|
||||
|
||||
archive_name_format: {{ borgmatic_name }}
|
||||
compression: {{ borgmatic_compression }}
|
||||
encryption_passphrase: {{ borgmatic_passphrase }}
|
||||
|
||||
repositories: {{ borgmatic_repositories }}
|
||||
- label: {{ borgmatic_repositories.label }}
|
||||
path: {{ borgmatic_repositories.path }}
|
||||
|
||||
consistency:
|
||||
checks: {{ borgmatic_checks }}
|
||||
|
||||
@ -8,17 +19,7 @@ hooks:
|
||||
ping_url: {{ borgmatic_healthchecks }}
|
||||
send_logs: false
|
||||
|
||||
location:
|
||||
exclude_patterns: {{ borgmatic_exclude_patterns }}
|
||||
repositories: {{ borgmatic_repositories }}
|
||||
source_directories: {{ borgmatic_source_directories }}
|
||||
|
||||
retention:
|
||||
keep_daily: {{ borgmatic_retention.daily }}
|
||||
keep_monthly: {{ borgmatic_retention.monthly }}
|
||||
keep_weekly: {{ borgmatic_retention.weekly }}
|
||||
|
||||
storage:
|
||||
archive_name_format: {{ borgmatic_name }}
|
||||
compression: {{ borgmatic_compression }}
|
||||
encryption_passphrase: {{ borgmatic_passphrase }}
|
||||
|
Loading…
Reference in New Issue
Block a user