first
This commit is contained in:
commit
97447b5fe5
7 changed files with 30 additions and 0 deletions
0
defaults/.keep
Normal file
0
defaults/.keep
Normal file
0
files/.keep
Normal file
0
files/.keep
Normal file
0
handlers/.keep
Normal file
0
handlers/.keep
Normal file
0
meta/.keep
Normal file
0
meta/.keep
Normal file
30
tasks/main.yml
Normal file
30
tasks/main.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
- name: create directory
|
||||||
|
file:
|
||||||
|
path: /opt/helm
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: create directory
|
||||||
|
file:
|
||||||
|
path: /opt/helm/{{ helm_version }}
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: get archive
|
||||||
|
get_url:
|
||||||
|
url: https://get.helm.sh/helm-v{{ helm_version }}-linux-amd64.tar.gz
|
||||||
|
dest: /tmp/helm.tar.gz
|
||||||
|
|
||||||
|
- name: unpack archive
|
||||||
|
unarchive:
|
||||||
|
src: /tmp/helm.tar.gz
|
||||||
|
remote_src: yes
|
||||||
|
dest: /opt/helm/{{ helm_version }}
|
||||||
|
extra_opts:
|
||||||
|
- "--strip-components"
|
||||||
|
- "1"
|
||||||
|
creates: /opt/helm/{{ helm_version }}/helm
|
||||||
|
|
||||||
|
- name: create symlink
|
||||||
|
file:
|
||||||
|
path: /usr/local/bin/helm
|
||||||
|
src: /opt/helm/{{ helm_version }}/helm
|
||||||
|
state: link
|
0
templates/.keep
Normal file
0
templates/.keep
Normal file
0
vars/.keep
Normal file
0
vars/.keep
Normal file
Loading…
Reference in a new issue