diff --git a/roles/mgrote_minio_configure/defaults/main.yml b/roles/mgrote_minio_configure/defaults/main.yml index 43d15d18..5c3fe5ca 100644 --- a/roles/mgrote_minio_configure/defaults/main.yml +++ b/roles/mgrote_minio_configure/defaults/main.yml @@ -4,6 +4,7 @@ minio_root_secret_key: minio_root_alias: minio_ansible_root minio_url: https://s3.mgrote.net minio_config_dir: /etc/minio +minio_client_release: "" # --dp ausschreiben diff --git a/roles/mgrote_minio_configure/tasks/client.yml b/roles/mgrote_minio_configure/tasks/client.yml index cfd32231..0312e8ab 100644 --- a/roles/mgrote_minio_configure/tasks/client.yml +++ b/roles/mgrote_minio_configure/tasks/client.yml @@ -6,10 +6,12 @@ - name: Compose the Minio client download url with lastest release ansible.builtin.set_fact: _minio_client_download_url: "{{ _minio_client_download_base_url }}/mc" + when: minio_client_release | length == 0 - name: "Compose the Minio client download url with release {{ minio_client_release }}" ansible.builtin.set_fact: _minio_client_download_url: "{{ _minio_client_download_base_url }}/archive/mc.{{ minio_client_release }}" + when: minio_client_release | length > 0 - name: "Get the Minio client checksum for amd64 architecture" ansible.builtin.set_fact: