setup minio automation #229

Merged
mg merged 114 commits from minio_automation into master 2024-11-09 22:00:58 +01:00
Showing only changes of commit e17f2b8df5 - Show all commits

View file

@ -1,8 +1,12 @@
--- ---
- name: setup minio buckets - name: block bucket
block:
- name: setup minio buckets
ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}" ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}"
loop: "{{ minio_buckets }}" loop: "{{ minio_buckets }}"
register: buckets register: buckets
failed_when: > rescue:
(not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout) or - name: print x
(not buckets.rc == 0) ansible.builtin.debug:
msg: "bucket exists already"
when: 'not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout'