1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00

if using files_from, BACKUP_SOURCES need to exist and be empty

This commit is contained in:
Karl DeBisschop 2024-01-29 13:28:00 -05:00
parent 911f51e27c
commit 4f857f3d7e

View file

@ -78,12 +78,7 @@ export B2_ACCOUNT_ID={{ restic_repos[item.repo].b2_account_id }}
{% if restic_repos[item.repo].b2_account_key is defined %}
export B2_ACCOUNT_KEY={{ restic_repos[item.repo].b2_account_key }}
{% endif %}
{% if item.src is defined and item.src is string %}
BACKUP_SOURCE="{{ item.src }}"
{% endif %}
{% if item.src is defined and item.src.__class__.__name__ =='list' %}
BACKUP_SOURCE="{{ item.src| join(' ') }}"
{% endif %}
BACKUP_SOURCE="{% if item.src is defined %}{% if item.src is string %}{{ item.src }}{% elif item.src.__class__.__name__ =='list' %}{{ item.src| join(' ') }}{% endif %}{% endif %}"
{% if item.lvm is defined %}
# Set up functions for LVM.