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