mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
Add support for AWS_DEFAULT_REGION
This commit is contained in:
parent
ee450c4f4b
commit
90a4cf5d85
2 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,9 @@ AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }}
|
||||||
{% if restic_repos[item.repo].aws_secret_access_key is defined %}
|
{% if restic_repos[item.repo].aws_secret_access_key is defined %}
|
||||||
AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }}
|
AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if restic_repos[item.repo].aws_default_region is defined %}
|
||||||
|
AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }}
|
||||||
|
{% endif %}
|
||||||
BACKUP_NAME={{ item.name }}
|
BACKUP_NAME={{ item.name }}
|
||||||
{% if item.src is defined %}
|
{% if item.src is defined %}
|
||||||
BACKUP_SOURCE={{ item.src }}
|
BACKUP_SOURCE={{ item.src }}
|
||||||
|
|
|
@ -12,6 +12,9 @@ AWS_ACCESS_KEY_ID={{ restic_repos[item.repo].aws_access_key }}
|
||||||
{% if restic_repos[item.repo].aws_secret_access_key is defined %}
|
{% if restic_repos[item.repo].aws_secret_access_key is defined %}
|
||||||
AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }}
|
AWS_SECRET_ACCESS_KEY={{ restic_repos[item.repo].aws_secret_access_key }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if restic_repos[item.repo].aws_default_region is defined %}
|
||||||
|
AWS_DEFAULT_REGION={{ restic_repos[item.repo].aws_default_region }}
|
||||||
|
{% endif %}
|
||||||
{% if item.src is defined %}
|
{% if item.src is defined %}
|
||||||
BACKUP_SOURCE={{ item.src }}
|
BACKUP_SOURCE={{ item.src }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue