mirror of
https://github.com/atosatto/ansible-minio.git
synced 2025-01-31 22:31:23 +01:00
commit
ad8a0ef025
@ -6,6 +6,7 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
checksum: "sha256:{{ minio_client_checksum }}"
|
||||||
register: _download_client
|
register: _download_client
|
||||||
until: _download_client is succeeded
|
until: _download_client is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
---
|
---
|
||||||
- name: Compose Minio download url
|
- block:
|
||||||
set_fact:
|
- name: Compose Minio download url
|
||||||
minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/minio"
|
set_fact:
|
||||||
|
minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/minio"
|
||||||
|
|
||||||
|
- name: "Minio server checksum for {{ go_arch_map[ansible_architecture] | default(ansible_architecture) }} architecture"
|
||||||
|
set_fact:
|
||||||
|
minio_server_checksum: "{{ lookup('url', minio_server_download_url + '.sha256sum').split(' ')[0] }}"
|
||||||
when:
|
when:
|
||||||
- minio_install_server
|
- minio_install_server
|
||||||
|
|
||||||
- name: Compose MC download url
|
- block:
|
||||||
set_fact:
|
- name: Compose MC download url
|
||||||
minio_client_download_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/mc"
|
set_fact:
|
||||||
|
minio_client_download_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/mc"
|
||||||
|
|
||||||
|
- name: "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] }}"
|
||||||
when:
|
when:
|
||||||
- minio_install_client
|
- minio_install_client
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
checksum: "sha256:{{ minio_server_checksum }}"
|
||||||
register: _download_server
|
register: _download_server
|
||||||
until: _download_server is succeeded
|
until: _download_server is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user