Merge pull request #133 from mindrunner/main

feat: add GCP support
This commit is contained in:
L3D 2024-12-16 16:14:03 +01:00 committed by GitHub
commit 46d1365964
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,9 @@
--- ---
- name: (CONF)Initialize repository - name: (CONF)Initialize repository
ansible.builtin.command: '{{ restic_install_path }}/restic init' ansible.builtin.command: "{{ restic_install_path }}/restic init"
environment: environment:
RESTIC_REPOSITORY: '{{ item.value.location }}' RESTIC_REPOSITORY: "{{ item.value.location }}"
RESTIC_PASSWORD: '{{ item.value.password }}' RESTIC_PASSWORD: "{{ item.value.password }}"
AWS_ACCESS_KEY_ID: '{{ item.value.aws_access_key | default("") }}' AWS_ACCESS_KEY_ID: '{{ item.value.aws_access_key | default("") }}'
AWS_SECRET_ACCESS_KEY: '{{ item.value.aws_secret_access_key | default("") }}' AWS_SECRET_ACCESS_KEY: '{{ item.value.aws_secret_access_key | default("") }}'
AWS_DEFAULT_REGION: '{{ item.value.aws_default_region | default("") }}' AWS_DEFAULT_REGION: '{{ item.value.aws_default_region | default("") }}'
@ -13,6 +13,9 @@
AZURE_ENDPOINT_SUFFIX: '{{ item.value.azure_endpoint_suffix | default("") }}' AZURE_ENDPOINT_SUFFIX: '{{ item.value.azure_endpoint_suffix | default("") }}'
B2_ACCOUNT_ID: '{{ item.value.b2_account_id | default("") }}' B2_ACCOUNT_ID: '{{ item.value.b2_account_id | default("") }}'
B2_ACCOUNT_KEY: '{{ item.value.b2_account_key | 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 }}" no_log: "{{ restic_no_log }}"
register: restic_init register: restic_init
changed_when: "'created restic repository' in restic_init.stdout" changed_when: "'created restic repository' in restic_init.stdout"