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

CHANGE: update all vars

This commit is contained in:
Matthias Leutenegger 2020-06-03 22:45:20 +02:00
parent 60b29a64a7
commit a563473b58
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ export RESTIC_PASSWORD='{{ restic_repos[item.repo].password | regex_replace('\''
export AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }} export AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }}
{% endif %} {% endif %}
{% if restic_repos[item.repo].aws_secret_access_key is defined %} {% if restic_repos[item.repo].aws_secret_access_key is defined %}
export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_escape() }}" export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_replace('\'', '\'\\\'\'') }}"
{% endif %} {% endif %}
{% if restic_repos[item.repo].aws_default_region is defined %} {% if restic_repos[item.repo].aws_default_region is defined %}
export AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }} export AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }}

View file

@ -10,7 +10,7 @@ BACKUP_NAME={{ item.name }}
export AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }} export AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }}
{% endif %} {% endif %}
{% if restic_repos[item.repo].aws_secret_access_key is defined %} {% if restic_repos[item.repo].aws_secret_access_key is defined %}
export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_escape() }}" export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_replace('\'', '\'\\\'\'') }}"
{% endif %} {% endif %}
{% if restic_repos[item.repo].aws_default_region is defined %} {% if restic_repos[item.repo].aws_default_region is defined %}
export AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }} export AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }}