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

@@ -0,0 +1,15 @@
---
- name: Download helm binary
get_url:
url: "{{ k3s_helm_url }}"
dest: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
when: ansible_facts.architecture == "x86_64"
- name: extract binary
unarchive:
src: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
dest: "{{ k3s_binary_dir }}/helm"
owner: root
group: "root"
mode: 0750
remote_src: true