2024-11-09 10:34:23 +01:00
|
|
|
---
|
2024-11-09 18:38:37 +01:00
|
|
|
- name: block bucket
|
|
|
|
block:
|
|
|
|
- name: setup minio buckets
|
|
|
|
ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}"
|
|
|
|
loop: "{{ minio_buckets }}"
|
|
|
|
register: buckets
|
|
|
|
rescue:
|
|
|
|
- name: print x
|
|
|
|
ansible.builtin.debug:
|
|
|
|
msg: "bucket exists already"
|
2024-11-09 18:39:03 +01:00
|
|
|
when: 'not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout'
|