ansible: add k3s-control-plane playbook
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user