From a16013a8a19f1a27998df23c4179404fabd6cd71 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Mon, 16 Aug 2021 00:09:00 +0200 Subject: [PATCH] Update version of k3s & add restart service --- tasks/cluster_k3s.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tasks/cluster_k3s.yml b/tasks/cluster_k3s.yml index fd986a3..dd0fe42 100644 --- a/tasks/cluster_k3s.yml +++ b/tasks/cluster_k3s.yml @@ -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