chore: remove helm install
This commit is contained in:
@@ -12,7 +12,3 @@ k3s_version: "v1.28.3+k3s2"
|
|||||||
k3s_kubectl_force_update: false
|
k3s_kubectl_force_update: false
|
||||||
k3s_kubectl_version: "v1.28.3"
|
k3s_kubectl_version: "v1.28.3"
|
||||||
k3s_kubectl_url: "https://dl.k8s.io/release/{{ k3s_kubectl_version }}/bin/linux/amd64/kubectl"
|
k3s_kubectl_url: "https://dl.k8s.io/release/{{ k3s_kubectl_version }}/bin/linux/amd64/kubectl"
|
||||||
|
|
||||||
k3s_helm_force_update: false
|
|
||||||
k3s_helm_version: "v3.13.1"
|
|
||||||
k3s_helm_url: "https://get.helm.sh/helm-{{ k3s_helm_version }}-linux-amd64.tar.gz"
|
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Download helm
|
|
||||||
get_url:
|
|
||||||
url: "{{ k3s_helm_url }}"
|
|
||||||
dest: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
|
|
||||||
when: ansible_facts.architecture == "x86_64"
|
|
||||||
|
|
||||||
- name: Create a directory to unpack Helm
|
|
||||||
tempfile:
|
|
||||||
state: directory
|
|
||||||
register: helm_unpack_directory
|
|
||||||
|
|
||||||
- name: Unpack Helm tarball
|
|
||||||
unarchive:
|
|
||||||
src: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
|
|
||||||
remote_src: yes
|
|
||||||
dest: "{{ helm_unpack_directory.path }}"
|
|
||||||
|
|
||||||
- name: Move Helm to the desired installation directory
|
|
||||||
copy:
|
|
||||||
src: "{{ helm_unpack_directory.path }}/linux-amd64/helm"
|
|
||||||
dest: "{{ k3s_binary_dir }}/helm"
|
|
||||||
remote_src: yes
|
|
||||||
mode: '0755'
|
|
||||||
when: ansible_facts.architecture == "x86_64"
|
|
||||||
|
|
||||||
- name: Clean up downloaded and unpacked files
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
with_items:
|
|
||||||
- "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
|
|
||||||
- "{{ helm_unpack_directory.path }}"
|
|
||||||
@@ -20,14 +20,5 @@
|
|||||||
include_tasks: installation_kubectl.yml
|
include_tasks: installation_kubectl.yml
|
||||||
when: not binary_kubectl_check_result.stat.exists or k3s_kubectl_force_update
|
when: not binary_kubectl_check_result.stat.exists or k3s_kubectl_force_update
|
||||||
|
|
||||||
- name: check if binary helm already exists
|
|
||||||
stat:
|
|
||||||
path: "{{ k3s_binary_dir }}/helm"
|
|
||||||
register: binary_helm_check_result
|
|
||||||
|
|
||||||
- name: install binary helm
|
|
||||||
include_tasks: installation_helm.yml
|
|
||||||
when: not binary_helm_check_result.stat.exists or k3s_helm_force_update
|
|
||||||
|
|
||||||
- name: configuration
|
- name: configuration
|
||||||
include_tasks: configuration.yml
|
include_tasks: configuration.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user