feat: added install kubectl and helm

This commit is contained in:
2024-02-26 11:20:30 +00:00
parent 00e4f7e5ab
commit f3ae6b8b9f
6 changed files with 68 additions and 6 deletions

View File

@@ -18,3 +18,15 @@
enabled: yes
name: k3s
when: k3s_env.changed or k3s_master.changed
- name: Ensure the .kube directory exists
file:
path: /root/.kube
state: directory
mode: '0700'
- name: Link /etc/rancher/k3s/k3s.yaml to /root/.kube/config
file:
src: /etc/rancher/k3s/k3s.yaml
dest: /root/.kube/config
state: link