48 lines
1.1 KiB
Django/Jinja
48 lines
1.1 KiB
Django/Jinja
---
|
|
# {{ ansible_managed }}
|
|
|
|
repositories:
|
|
{% for repository in borgmatic_repositories %}
|
|
- label: {{ repository.label }}
|
|
path: {{ repository.path }}
|
|
{% endfor %}
|
|
|
|
{% if borgmatic_exclude_patterns | length > 0 %}
|
|
exclude_patterns:
|
|
{% for pattern in borgmatic_exclude_patterns %}
|
|
- {{ pattern }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
source_directories:
|
|
{% for directory in borgmatic_source_directories %}
|
|
- {{ directory }}
|
|
{% endfor %}
|
|
|
|
archive_name_format: {{ borgmatic_name }}
|
|
compression: {{ borgmatic_compression }}
|
|
encryption_passphrase: {{ borgmatic_passphrase }}
|
|
|
|
checks:
|
|
{% for check in borgmatic_checks %}
|
|
- name: {{ check.name }}
|
|
frequency: {{ check.frequency }}
|
|
{% endfor %}
|
|
|
|
healthchecks:
|
|
ping_url: {{ borgmatic_healthchecks }}
|
|
send_logs: false
|
|
states:
|
|
- finish
|
|
- fail
|
|
|
|
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 %}
|