Fix repo init
This commit is contained in:
parent
1fc2b6d698
commit
73436ca001
@ -74,7 +74,7 @@
|
|||||||
failed_when: "command_result.rc!=0 and 'repository master key and config already initialized' not in command_result.stderr"
|
failed_when: "command_result.rc!=0 and 'repository master key and config already initialized' not in command_result.stderr"
|
||||||
changed_when: "false"
|
changed_when: "false"
|
||||||
environment:
|
environment:
|
||||||
RESTIC_REPOSITORY: "s3:{{ cloudflare_r2_endpoint }}/{{ backup_bucket_prefix }}-{{ inventory_hostname }}"
|
RESTIC_REPOSITORY: "s3:{{ cloudflare_r2_endpoint }}{{ '' if ((cloudflare_r2_endpoint | urlsplit('path') | default('')) | length >1) else '/' ~ backup_bucket_prefix ~ '-' ~ inventory_hostname }}"
|
||||||
AWS_ACCESS_KEY_ID: "{{ cloudflare_r2_access_key }}"
|
AWS_ACCESS_KEY_ID: "{{ cloudflare_r2_access_key }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ cloudflare_r2_secret_key }}"
|
AWS_SECRET_ACCESS_KEY: "{{ cloudflare_r2_secret_key }}"
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user