feat: added install kubectl and helm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user