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

fix(preparation): Add conditions to allow binary installation of version newer than 2.6.1 #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion tasks/preparation/ntfy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
- name: Set download link
ansible.builtin.set_fact:
_release_download_url: "https://github.com/binwiederhier/ntfy/releases/download/v{{ ntfy_version }}/ntfy_{{ ntfy_version }}_linux_{{ release_binary_arch }}.tar.gz"

when: ntfy_version is version('2.6.1', '>=')
- name: Set download link
ansible.builtin.set_fact:
_release_download_url: "https://github.com/binwiederhier/ntfy/releases/download/v{{ ntfy_version }}/ntfy_{{ ntfy_version }}_linux_{{ release_binary_arch_old }}.tar.gz"
when: ntfy_version is version('2.6.1', '<')
- name: Probe download link is valid
ansible.builtin.uri:
url: "{{ _release_download_url }}"
Expand Down
7 changes: 7 additions & 0 deletions vars/architecture_map.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
binary_arch_map:
i386: 'amd64'
x86_64: 'amd64'
aarch64: 'arm64'
armv7l: 'armv7'
armv6l: 'armv6'

binary_arch_map_old:
i386: 'x86_64'
x86_64: 'x86_64'
aarch64: 'arm64'
Expand Down
Loading