Skip to content

Commit

Permalink
Download correct windows binary based on architecture (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbalinov authored Nov 12, 2024
1 parent 4425aaa commit 95d3ef0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
var: latest_jsondata.json
when: pkg_version_url is undefined

- name: Determine latest pkg version
- name: Determine latest pkg version (amd64)
ansible.builtin.set_fact:
pkg_version_url: "{{ latest_jsondata.json | json_query(jmesquery) }}"
vars:
jmesquery: "files[*].filename | [?contains(@, 'amd64.msi')] | [0]"
when: pkg_version_url is undefined
when: ansible_architecture2 | lower != 'arm64' and pkg_version_url is undefined

- name: Determine latest pkg version (arm64)
ansible.builtin.set_fact:
pkg_version_url: "{{ latest_jsondata.json | json_query(jmesquery) }}"
vars:
jmesquery: "files[*].filename | [?contains(@, 'arm64.msi')] | [0]"
when: ansible_architecture2 | lower == 'arm64' and pkg_version_url is undefined

- name: Log latest version
ansible.builtin.debug:
Expand Down

0 comments on commit 95d3ef0

Please sign in to comment.