mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
CHANGE: use regex_escape()
This commit is contained in:
parent
83d6f50cc4
commit
d4ee01a305
1 changed files with 2 additions and 2 deletions
|
@ -4,13 +4,13 @@
|
||||||
# Use this file to create a Backup and prune existing data with one execution.
|
# Use this file to create a Backup and prune existing data with one execution.
|
||||||
|
|
||||||
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
||||||
export RESTIC_PASSWORD={{ restic_repos[item.repo].password }}
|
export RESTIC_PASSWORD="{{ restic_repos[item.repo].password | regex_escape() }}"
|
||||||
BACKUP_NAME={{ item.name }}
|
BACKUP_NAME={{ item.name }}
|
||||||
{% if restic_repos[item.repo].aws_access_key is defined %}
|
{% if restic_repos[item.repo].aws_access_key is defined %}
|
||||||
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 }}
|
export AWS_SECRET_ACCESS_KEY="{{ restic_repos[item.repo].aws_secret_access_key | regex_escape() }}"
|
||||||
{% 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 }}
|
||||||
|
|
Loading…
Reference in a new issue