mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-12-01 12:53:20 +01:00
23 lines
785 B
YAML
23 lines
785 B
YAML
|
---
|
||
|
|
||
|
- name: Compose the Minio client download url
|
||
|
set_fact:
|
||
|
_minio_client_download_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/mc"
|
||
|
|
||
|
- name: "Get the Minio client checksum for {{ go_arch_map[ansible_architecture] | default(ansible_architecture) }} architecture"
|
||
|
set_fact:
|
||
|
_minio_client_checksum: "{{ lookup('url', _minio_client_download_url + '.sha256sum').split(' ')[0] }}"
|
||
|
|
||
|
- name: Download the Minio client
|
||
|
get_url:
|
||
|
url: "{{ _minio_client_download_url }}"
|
||
|
dest: "{{ minio_client_bin }}"
|
||
|
owner: "root"
|
||
|
group: "root"
|
||
|
mode: 0755
|
||
|
checksum: "sha256:{{ _minio_client_checksum }}"
|
||
|
register: _download_client
|
||
|
until: _download_client is succeeded
|
||
|
retries: 5
|
||
|
delay: 2
|