From 9fcf71c19b333a23d038637434e702aee881b5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Wed, 19 Aug 2026 14:13:04 +0000 Subject: [PATCH] ansible: add k3s-control-plane playbook --- nodes/ansible/group_vars/all/public.yaml | 1 + nodes/ansible/k3s-control-plane.playbook.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 nodes/ansible/group_vars/all/public.yaml create mode 100644 nodes/ansible/k3s-control-plane.playbook.yaml diff --git a/nodes/ansible/group_vars/all/public.yaml b/nodes/ansible/group_vars/all/public.yaml new file mode 100644 index 0000000..11d52c2 --- /dev/null +++ b/nodes/ansible/group_vars/all/public.yaml @@ -0,0 +1 @@ +k3s_version: "v1.36.3+k3s1" \ No newline at end of file diff --git a/nodes/ansible/k3s-control-plane.playbook.yaml b/nodes/ansible/k3s-control-plane.playbook.yaml new file mode 100644 index 0000000..2cc9930 --- /dev/null +++ b/nodes/ansible/k3s-control-plane.playbook.yaml @@ -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