homeserver/roles/mgrote_minio_configure/tasks/bucket.yml

17 lines
520 B
YAML
Raw Normal View History

2024-11-09 10:34:23 +01:00
---
2024-11-09 21:18:16 +01:00
- name: Setup buckets
2024-11-09 19:16:10 +01:00
dubzland.minio.minio_bucket:
2024-11-09 21:15:28 +01:00
name: "{{ item.name }}"
2024-11-09 19:16:10 +01:00
auth:
access_key: "{{ minio_root_access_key }}"
secret_key: "{{ minio_root_secret_key }}"
url: "{{ minio_url }}"
2024-11-09 21:20:59 +01:00
state: "{{ item.state | default('present') }}" # löschen geht nur mit leerem Bucket
2024-11-09 20:39:28 +01:00
loop: "{{ minio_buckets }}"
2024-11-09 21:25:17 +01:00
- name: Deletion Info
ansible.builtin.debug:
msg: "Deletion only possible with empty bucket ({{ item.name }})"
when: '"absent" in item.state'
loop: "{{ minio_buckets }}"