diff --git a/defaults/main.yml b/defaults/main.yml index 8eca2ca..ef0655f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/setup/always.yml b/tasks/setup/always.yml index f750e4e..c94e1f6 100644 --- a/tasks/setup/always.yml +++ b/tasks/setup/always.yml @@ -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 diff --git a/vars/default.yml b/vars/default.yml index 01c1a10..c9debd3 100644 --- a/vars/default.yml +++ b/vars/default.yml @@ -1,8 +1,7 @@ --- -k3s_architecture_map: +k3s_architecture_suffix_map: x86_64: "" aarch64: "-arm64" armv7l: "-armhf" - s390x: "-s390x" ...