This commit is contained in:
parent
f39b4bbb62
commit
bae044e145
@ -22,14 +22,14 @@
|
||||
|
||||
- name: Create destination sub folder
|
||||
ansible.builtin.file:
|
||||
path: "{{ archives.path }}/{{ item.binary }}"
|
||||
path: "{{ archives.path }}/{{ item.filename }}"
|
||||
state: directory
|
||||
loop: "{{ dependencies.static_binaries | selectattr('archive', 'equalto', 'compressed') }}"
|
||||
|
||||
- name: Download, extract & install archived static binaries
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ item.url }}"
|
||||
dest: "{{ archives.path }}/{{ item.binary }}"
|
||||
dest: "{{ archives.path }}/{{ item.filename }}"
|
||||
remote_src: yes
|
||||
extra_opts: "{{ item.extra_opts | default(omit) }}"
|
||||
loop: "{{ dependencies.static_binaries | selectattr('archive', 'equalto', 'compressed') }}"
|
||||
|
@ -25,11 +25,11 @@ dependencies:
|
||||
- kubernetes.core
|
||||
|
||||
static_binaries:
|
||||
- binary: helm
|
||||
- filename: helm
|
||||
url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
|
||||
archive: compressed
|
||||
extra_opts: --strip-components=1
|
||||
- binary: yq
|
||||
- filename: yq
|
||||
url: http://github.com/mikefarah/yq/releases/download/v4.25.2/yq_linux_amd64
|
||||
|
||||
packages:
|
||||
|
Loading…
Reference in New Issue
Block a user