diff --git a/roles/minio/defaults/main.yml b/roles/minio/defaults/main.yml index 6c5c90d..eb410e6 100644 --- a/roles/minio/defaults/main.yml +++ b/roles/minio/defaults/main.yml @@ -37,4 +37,4 @@ minio_traefik_certresolver: "letsencrypt_http" # access_key - The access key # secret_key - The secret key # browser - Optional: Enable/Disable the minio browser -# minio_users: [] +minio_users: [] diff --git a/roles/minio/tasks/main.yml b/roles/minio/tasks/main.yml index 30933bf..35c82c9 100644 --- a/roles/minio/tasks/main.yml +++ b/roles/minio/tasks/main.yml @@ -73,6 +73,8 @@ - docker - minio become: true + when: + - minio_users | length > 0 - name: Compose minio docker_compose: @@ -83,3 +85,5 @@ tags: - minio become: true + when: + - minio_users | length > 0