Update version of k3s & add restart service
This commit is contained in:
parent
2b1fe56b47
commit
a16013a8a1
1 changed files with 7 additions and 3 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
- name: retreive k3s binary for x86_64
|
||||
get_url:
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s"
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s"
|
||||
dest: "/usr/local/bin/k3s"
|
||||
group: root
|
||||
owner: root
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
- name: retreive k3s binary for arm64
|
||||
get_url:
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s-arm64"
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s-arm64"
|
||||
dest: "/usr/local/bin/k3s"
|
||||
group: root
|
||||
owner: root
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
- name: retreive k3s binary for armv6/armv7
|
||||
get_url:
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.20.6%2Bk3s1/k3s-armhf"
|
||||
url: "https://github.com/rancher/k3s/releases/download/v1.21.4%2Bk3s1/k3s-armhf"
|
||||
dest: "/usr/local/bin/k3s"
|
||||
group: root
|
||||
owner: root
|
||||
|
|
@ -151,6 +151,10 @@
|
|||
when:
|
||||
- ansible_service_mgr == "systemd"
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- name: Enable k3s on boot
|
||||
service:
|
||||
name: k3s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue