mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2026-02-01 20:04:08 +01:00
Allow source_directories to be empty
Signed-off-by: Leonidas Avdelas <avdelasleonidas@gmail.com>
This commit is contained in:
parent
747b4698b5
commit
5c162cca2b
@ -3,10 +3,7 @@
|
||||
# Managed by Ansible, please don't edit manually
|
||||
|
||||
# Full config: https://torsion.org/borgmatic/docs/reference/config.yaml
|
||||
{% if borg_source_directories is not defined or borg_source_directories | length == 0 %}
|
||||
source_directories:
|
||||
- /etc/hostname # prevent empty backupconfig
|
||||
{% else %}
|
||||
{% if borg_source_directories is defined and borg_source_directories | length > 0 %}
|
||||
source_directories:
|
||||
{% for dir in borg_source_directories %}
|
||||
- {{ dir }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user