Merge pull request #14 from paulfantom/multiarch

Multiarch
This commit is contained in:
Paweł Krupa 2018-06-25 16:56:44 +02:00 committed by GitHub
commit 1f4bc111ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 4 deletions

View File

@ -1,4 +1,6 @@
---
- include: preflight.yml
- name: add the python sni support to legacy python installations
include: python_sni.yml
when:

12
tasks/preflight.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Compose Minio 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"
when:
- minio_install_server
- name: Compose MC 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"
when:
- minio_install_client

View File

@ -1,5 +1,7 @@
---
# Minio and MC download urls
minio_server_download_url: https://dl.minio.io/server/minio/release/linux-amd64/minio
minio_client_download_url: https://dl.minio.io/client/mc/release/linux-amd64/mc
go_arch_map:
i386: '386'
x86_64: 'amd64'
aarch64: 'arm64'
armv7l: 'arm'
armv6l: 'arm6vl'