add restic role

This commit is contained in:
2019-12-15 00:40:49 -06:00
parent 818a7aaefd
commit 95b7f4115c
8 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
export RESTIC_REPOSITORY="{{ item.repo }}"
{% for k, v in item.environment.items() %}
export {{ k | upper }}="{{ v }}"
{% endfor %}

View File

@@ -0,0 +1,3 @@
{% for exclude in item.exclude %}
{{ exclude }}
{% endfor %}