homeserver/roles/mgrote_minio_configure/tasks/bucket.yml

9 lines
344 B
YAML
Raw Normal View History

2024-11-09 10:34:23 +01:00
---
- name: setup minio buckets
ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}"
loop: "{{ minio_buckets }}"
2024-11-09 18:31:11 +01:00
register: buckets
2024-11-09 18:35:14 +01:00
failed_when: >
(not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout) or
(not buckets.rc == 0)