Skip to content

Commit

Permalink
Parametrize target OS in headscale download link
Browse files Browse the repository at this point in the history
  • Loading branch information
kazauwa committed Mar 18, 2024
1 parent 42c389e commit 255be2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
headscale_version: '0.22.3'
headscale_os: 'linux'
headscale_arch: 'amd64'
headscale_user_name: 'headscale'
headscale_user_group: '{{ headscale_user_name }}'
Expand Down
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

- name: Download headscale binary
get_url:
url: 'https://github.com/juanfont/headscale/releases/download/v{{ headscale_version }}/headscale_{{ headscale_version }}_linux_{{ headscale_arch }}'
url: 'https://github.com/juanfont/headscale/releases/download/v{{ headscale_version }}/headscale_{{ headscale_version }}_{{ headscale_os }}_{{ headscale_arch }}'
dest: '{{ headscale_binary_path }}'
owner: '{{ headscale_user_uid }}'
group: '{{ headscale_user_gid }}'
Expand Down

0 comments on commit 255be2b

Please sign in to comment.