Create the bucket only if the URL is a generic one. If the url is to a specific bucket, don't create it
This commit is contained in:
parent
de5dfc204f
commit
40841b3f2a
@ -63,6 +63,7 @@
|
||||
endpoint_url: "{{ cloudflare_r2_endpoint }}"
|
||||
access_key: "{{ cloudflare_r2_access_key }}"
|
||||
secret_key: "{{ cloudflare_r2_secret_key }}"
|
||||
when: (cloudflare_r2_endpoint | urlsplit('path') | default('')) | length > 0
|
||||
|
||||
- name: initiate restic repository
|
||||
command: "restic init --password-file=/backup-pwd"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user