homeserver/roles/mgrote_minio_configure/tasks/bucket.yml
2024-11-09 21:25:17 +01:00

16 lines
520 B
YAML

---
- name: Setup buckets
dubzland.minio.minio_bucket:
name: "{{ item.name }}"
auth:
access_key: "{{ minio_root_access_key }}"
secret_key: "{{ minio_root_secret_key }}"
url: "{{ minio_url }}"
state: "{{ item.state | default('present') }}" # löschen geht nur mit leerem Bucket
loop: "{{ minio_buckets }}"
- name: Deletion Info
ansible.builtin.debug:
msg: "Deletion only possible with empty bucket ({{ item.name }})"
when: '"absent" in item.state'
loop: "{{ minio_buckets }}"