diff --git a/roles/kompose/tasks/main.yml b/roles/kompose/tasks/main.yml index 8c7e814..9984c69 100644 --- a/roles/kompose/tasks/main.yml +++ b/roles/kompose/tasks/main.yml @@ -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" diff --git a/roles/kompose/vars/main.yml b/roles/kompose/vars/main.yml new file mode 100644 index 0000000..5957bbd --- /dev/null +++ b/roles/kompose/vars/main.yml @@ -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] }}"