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