kube-cluster-update playbook

update k3s version to 1.29
This commit is contained in:
2025-08-16 20:58:08 -04:00
parent 2a52b535c5
commit d0d8876c43
4 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
# default values for prod.k3s
kube_context: home
k3s_version: "v1.29.1"

View File

@@ -1,4 +1,5 @@
---
# install k3s
- name: Install required packages
apt:
@@ -20,7 +21,7 @@
async: 300
poll: 10
ansible.builtin.shell:
cmd: sh -s --
cmd: INSTALL_K3S_VERSION={{k3s_version}}+k3s1 sh -s --
stdin: "{{ k3s_installer.content }}"
#- name: Setup bash completion

View File

@@ -9,6 +9,9 @@
- include_tasks: install.yml
when: not k3s_service.stat.exists
- include_tasks: install.yml
when: k3s_upgrade == true
- name: Start service k3s, if not started
ansible.builtin.service:
name: k3s