Read borgbase repository dynamically
No need to configure it in host_vars
This commit is contained in:
parent
303b738f99
commit
dab13a2388
1 changed files with 4 additions and 0 deletions
|
@ -17,9 +17,13 @@ location:
|
|||
# Stay in same file system (do not cross mount points).
|
||||
one_file_system: {{ borg_one_file_system }}
|
||||
repositories:
|
||||
{% if borgbase is define and borgbase %}
|
||||
- ssh://{{ borgbase_repo.repo_id }}@{{ borgbackup_ssh_host }}/./repo"
|
||||
{% else %}
|
||||
{% for repo in borg_repository %}
|
||||
- {{ repo.path }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
# Store atime into archive.
|
||||
atime: {{ borgmatic_store_atime }}
|
||||
|
|
Loading…
Reference in a new issue