ansible/roles/restic/templates/repo-env.sh.j2

17 lines
329 B
Plaintext
Raw Permalink Normal View History

2019-12-16 02:51:51 +00:00
#!/bin/bash
# {{ ansible_managed }}
export RESTIC_REPOSITORY="{{ item.repo }}"
{% if "environment" in item %}
{% for k, v in item.environment.items() %}
export {{ k | upper }}="{{ v }}"
{% endfor %}
{% endif %}
{% if "forget" in item %}
{% for k, v in item.forget.items() %}
{{ k | upper }}="{{ v }}"
{% endfor %}
{% endif %}