Skip to content

Commit

Permalink
add vars to handle arch mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Anderson committed Mar 5, 2024
1 parent e85e597 commit 39883af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kompose/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
ansible.builtin.get_url:
url: "https://github.com/kubernetes/kompose/releases\
/download/v{{ kompose_version }}/kompose\
-{{ ansible_system }}-{{ ansible_architecture }}"
-{{ ansible_system }}-{{ kompose_architecture }}"
dest: /usr/local/bin/kompose
mode: "0755"
12 changes: 12 additions & 0 deletions roles/kompose/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# code: language=ansible

kompose_architecture_mapping:
x86_64: amd64
ppc64le: ppc64el
s390x: s390x
armv7l: armhf
aarch64: arm64
arm64: arm64

kompose_architecture: "{{ kompose_architecture_mapping[ansible_architecture] }}"

0 comments on commit 39883af

Please sign in to comment.