Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download correct windows binary based on architecture #82

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
philipbalinov marked this conversation as resolved.
Show resolved Hide resolved

- 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