From ad0f161037537993bf31562cb4e0e5d0566b941e Mon Sep 17 00:00:00 2001 From: lukas Date: Mon, 16 Dec 2024 15:02:58 +0100 Subject: [PATCH] feat: add GCP support --- tasks/configure.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 87235af..5a0d0ae 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -1,9 +1,9 @@ --- - name: (CONF)Initialize repository - ansible.builtin.command: '{{ restic_install_path }}/restic init' + ansible.builtin.command: "{{ restic_install_path }}/restic init" environment: - RESTIC_REPOSITORY: '{{ item.value.location }}' - RESTIC_PASSWORD: '{{ item.value.password }}' + RESTIC_REPOSITORY: "{{ item.value.location }}" + RESTIC_PASSWORD: "{{ item.value.password }}" AWS_ACCESS_KEY_ID: '{{ item.value.aws_access_key | default("") }}' AWS_SECRET_ACCESS_KEY: '{{ item.value.aws_secret_access_key | default("") }}' AWS_DEFAULT_REGION: '{{ item.value.aws_default_region | default("") }}' @@ -13,6 +13,9 @@ AZURE_ENDPOINT_SUFFIX: '{{ item.value.azure_endpoint_suffix | default("") }}' B2_ACCOUNT_ID: '{{ item.value.b2_account_id | default("") }}' B2_ACCOUNT_KEY: '{{ item.value.b2_account_key | default("") }}' + GOOGLE_PROJECT_ID: '{{ item.value.google_project_id | default("") }}' + GOOGLE_APPLICATION_CREDENTIALS: '{{ item.value.google_application_credentials | default("") }}' + GOOGLE_ACCESS_TOKEN: '{{ item.value.google_access_token | default("") }}' no_log: "{{ restic_no_log }}" register: restic_init changed_when: "'created restic repository' in restic_init.stdout"