dd
This commit is contained in:
parent
6dc7dd3483
commit
e17f2b8df5
1 changed files with 11 additions and 7 deletions
|
@ -1,8 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: setup minio buckets
|
- name: block bucket
|
||||||
ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}"
|
block:
|
||||||
loop: "{{ minio_buckets }}"
|
- name: setup minio buckets
|
||||||
register: buckets
|
ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}"
|
||||||
failed_when: >
|
loop: "{{ minio_buckets }}"
|
||||||
(not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout) or
|
register: buckets
|
||||||
(not buckets.rc == 0)
|
rescue:
|
||||||
|
- name: print x
|
||||||
|
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'
|
||||||
|
|
Loading…
Reference in a new issue