ansible: add worker nodes k3s update playbook

This commit is contained in:
Márcio Fernandes
2026-08-19 14:44:42 +00:00
parent 9fcf71c19b
commit 0d64b82f09
4 changed files with 36 additions and 26 deletions
@@ -0,0 +1,14 @@
- name: K3s update instal k3s binaries on
hosts:
- casa-mini-minion-01
become: true
tasks:
- name: setup k3s - casa-mini-minion-01
ansible.builtin.shell: "curl -sfL https://get.k3s.io | sh -"
environment:
INSTALL_K3S_VERSION: "{{ k3s_version }}"
INSTALL_K3S_EXEC: "agent --server https://casa.dev.lan:6443 --token {{ k3s_node_token }}"
register: k3s_output
- name: Show output
ansible.builtin.debug:
var: k3s_output.stdout_lines