mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2025-01-09 17:00:18 +01:00
Merge pull request #134 from mindrunner/main
feat: add missing GCP variables
This commit is contained in:
commit
3540beed5f
2 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,12 @@
|
||||||
|
|
||||||
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
||||||
export RESTIC_PASSWORD='{{ restic_repos[item.repo].password | regex_replace('\'', '\'\\\'\'') }}'
|
export RESTIC_PASSWORD='{{ restic_repos[item.repo].password | regex_replace('\'', '\'\\\'\'') }}'
|
||||||
|
{% if restic_repos[item.repo].google_project_id is defined %}
|
||||||
|
export GOOGLE_PROJECT_ID={{ restic_repos[item.repo].google_project_id }}
|
||||||
|
{% endif %}
|
||||||
|
{% if restic_repos[item.repo].google_application_credentials is defined %}
|
||||||
|
export GOOGLE_APPLICATION_CREDENTIALS={{ restic_repos[item.repo].google_application_credentials }}
|
||||||
|
{% endif %}
|
||||||
{% 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 %}
|
||||||
|
|
|
@ -54,6 +54,12 @@ export GOMAXPROCS={{ restic__max_cpus }}
|
||||||
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
export RESTIC_REPOSITORY={{ restic_repos[item.repo].location }}
|
||||||
export RESTIC_PASSWORD='{{ restic_repos[item.repo].password | regex_replace('\'', '\'\\\'\'') }}'
|
export RESTIC_PASSWORD='{{ restic_repos[item.repo].password | regex_replace('\'', '\'\\\'\'') }}'
|
||||||
BACKUP_NAME={{ item.name }}
|
BACKUP_NAME={{ item.name }}
|
||||||
|
{% if restic_repos[item.repo].google_project_id is defined %}
|
||||||
|
export GOOGLE_PROJECT_ID={{ restic_repos[item.repo].google_project_id }}
|
||||||
|
{% endif %}
|
||||||
|
{% if restic_repos[item.repo].google_application_credentials is defined %}
|
||||||
|
export GOOGLE_APPLICATION_CREDENTIALS={{ restic_repos[item.repo].google_application_credentials }}
|
||||||
|
{% endif %}
|
||||||
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue