mirror of
https://github.com/atosatto/ansible-minio.git
synced 2024-11-21 11:15:18 +01:00
Simplify go_arch setup
Move go_arch mapping to vars.
This commit is contained in:
parent
76a2df8045
commit
9317bcdd6b
@ -2,9 +2,9 @@
|
||||
|
||||
- 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"
|
||||
_minio_client_download_url: "https://dl.minio.io/client/mc/release/linux-{{ go_arch }}/mc"
|
||||
|
||||
- name: "Get the Minio client checksum for {{ go_arch_map[ansible_architecture] | default(ansible_architecture) }} architecture"
|
||||
- name: "Get the Minio client checksum for {{ go_arch }} architecture"
|
||||
set_fact:
|
||||
_minio_client_checksum: "{{ lookup('url', _minio_client_download_url + '.sha256sum').split(' ')[0] }}"
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
- name: Compose the Minio server download url
|
||||
set_fact:
|
||||
_minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/minio"
|
||||
_minio_server_download_url: "https://dl.minio.io/server/minio/release/linux-{{ go_arch }}/minio"
|
||||
|
||||
- name: "Get the Minio server checksum for {{ go_arch_map[ansible_architecture] | default(ansible_architecture) }} architecture"
|
||||
- name: "Get the Minio server checksum for {{ go_arch }} architecture"
|
||||
set_fact:
|
||||
_minio_server_checksum: "{{ lookup('url', _minio_server_download_url + '.sha256sum').split(' ')[0] }}"
|
||||
|
||||
|
@ -5,3 +5,5 @@ go_arch_map:
|
||||
aarch64: 'arm64'
|
||||
armv7l: 'arm'
|
||||
armv6l: 'arm6vl'
|
||||
|
||||
go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user