Michael Grote
eeadb455cb
Reviewed-on: #229 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
16 lines
482 B
YAML
16 lines
482 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') }}"
|
|
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 }}"
|