diff --git a/roles/mgrote_minio_configure/tasks/bucket.yml b/roles/mgrote_minio_configure/tasks/bucket.yml index d543f557..be1cf144 100644 --- a/roles/mgrote_minio_configure/tasks/bucket.yml +++ b/roles/mgrote_minio_configure/tasks/bucket.yml @@ -3,4 +3,6 @@ ansible.builtin.command: "{{ minio_client_bin }} --dp mb {{ minio_root_alias }}/{{ item.name }}" loop: "{{ minio_buckets }}" register: buckets - failed_when: 'not "Your previous request to create the named bucket succeeded and you already own it." in buckets.stdout' + 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)