2024-11-09 22:00:58 +01:00
|
|
|
---
|
|
|
|
- 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') }}"
|
|
|
|
loop: "{{ minio_buckets }}"
|
2024-11-25 18:52:01 +01:00
|
|
|
delegate_to: localhost
|
2024-11-09 22:00:58 +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 }}"
|
2024-11-25 18:52:01 +01:00
|
|
|
delegate_to: localhost
|