fix: remove k3s from name vars

This commit is contained in:
2024-02-26 15:55:09 +00:00
parent 55c1845d9a
commit 9665b1daf4
2 changed files with 6 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
---
- name: Download helm
get_url:
url: "{{ k3s_helm_url }}"
dest: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
url: "{{ helm_url }}"
dest: "/tmp/helm-{{ helm_version }}.tar.gz"
when: ansible_facts.architecture == "x86_64"
- name: Create a directory to unpack Helm
@@ -12,14 +12,14 @@
- name: Unpack Helm tarball
unarchive:
src: "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
src: "/tmp/helm-{{ 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"
dest: "{{ helm_binary_dir }}/helm"
remote_src: yes
mode: '0755'
when: ansible_facts.architecture == "x86_64"
@@ -29,5 +29,5 @@
path: "{{ item }}"
state: absent
with_items:
- "/tmp/helm-{{ k3s_helm_version }}.tar.gz"
- "/tmp/helm-{{ helm_version }}.tar.gz"
- "{{ helm_unpack_directory.path }}"