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: use single quotes

This commit is contained in:
Matthias Leutenegger 2020-06-04 19:22:47 +02:00
parent a563473b58
commit 9bc6c06deb
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_replace('\'', '\'\\\'\'') }}" 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_replace('\'', '\'\\\'\'') }}" 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 }}