Skip to content

Commit

Permalink
Fix checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 committed Mar 13, 2024
1 parent b7091c0 commit 4ed9a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
k3s_version: "v1.26.1+k3s1"
k3s_version: " v1.28.7+k3s1"
k3s_server_location: /var/lib/rancher/k3s
k3s_systemd_dir: /etc/systemd/system

Expand Down
6 changes: 4 additions & 2 deletions tasks/setup/always.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
- name: Download k3s binary
become: true
ansible.builtin.get_url:
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s_version }}{{ k3s_architecture_map[ansible_architecture] }}/k3s
checksum: sha256:https://github.com/k3s-io/k3s/releases/download/{{ k3s_version }}/sha256sum-{{ k3s_architecture_map[ansible_architecture] }}.txt
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s_version }}{{ k3s_architecture_suffix_map[ansible_architecture] }}/k3s
checksum: "sha256:https://github.com/k3s-io/k3s/releases/download/
{{ k3s_version }}/sha256sum{% if k3s_architecture_suffix_map[ansible_architecture] == '' %}-amd64
{% else %}{{ k3s_architecture_suffix_map[ansible_architecture] }}{% endif %}.txt"
dest: /usr/local/bin/k3s
owner: root
group: root
Expand Down
3 changes: 1 addition & 2 deletions vars/default.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
k3s_architecture_map:
k3s_architecture_suffix_map:
x86_64: ""
aarch64: "-arm64"
armv7l: "-armhf"
s390x: "-s390x"

...

0 comments on commit 4ed9a5c

Please sign in to comment.