homeserver/roles/mgrote_minio_configure/tasks/bucket.yml

17 lines
482 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:25:57 +01:00
state: "{{ item.state | default('present') }}"
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 }}"