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:
Kuba Orlik 2026-06-03 22:18:40 +02:00
parent de5dfc204f
commit 40841b3f2a

View File

@ -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"