Configurable backup prefix

This commit is contained in:
Kuba Orlik 2025-09-13 00:06:27 +02:00
parent 1622fae1a0
commit 3df4186816
2 changed files with 2 additions and 1 deletions

1
defaults/main.yml Normal file
View File

@ -0,0 +1 @@
backup_bucket_prefix: backup

View File

@ -54,7 +54,7 @@
- name: "Create a bucket for the backups"
amazon.aws.s3_bucket:
name: "icd-backup-{{ inventory_hostname }}"
name: "{{ backup_bucket_prefix }}-{{ inventory_hostname }}"
state: present
endpoint_url: "{{ cloudflare_r2_endpoint }}"
access_key: "{{ cloudflare_r2_access_key }}"