ansible_role_restic/templates/restic_access_Linux.j2
Matthias Leutenegger 0053f18814 add credential file
2019-09-11 11:31:51 +02:00

10 lines
358 B
Django/Jinja

# {{ ansible_managed }}
# Backup credentials for {{ item.src|default('stdin') }}
# Source this file to work with restic on this host
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
export RESTIC_PASSWORD={{ restic_repos[item.repo].password }}
BACKUP_NAME={{ item.name }}
{% if item.src is defined %}
BACKUP_SOURCE={{ item.src }}
{% endif %}