ansible: add k3s-control-plane playbook

This commit is contained in:
Márcio Fernandes
2026-08-19 14:13:04 +00:00
parent 63bc293953
commit 9fcf71c19b
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
k3s_version: "v1.36.3+k3s1"
@@ -0,0 +1,15 @@
- name: K3s update instal control plane
hosts:
- casa
become: true
tasks:
- name: setup k3s - control plane
ansible.builtin.shell: "curl -sfL https://get.k3s.io | sh -"
environment:
INSTALL_K3S_VERSION: "{{ k3s_version }}"
INSTALL_K3S_EXEC: "--flannel-backend=none --disable-network-policy --disable=traefik --disable=servicelb"
register: k3s_output
- name: Show output
ansible.builtin.debug:
var: k3s_output.stdout_lines