From 97447b5fe5dce72df696e0e77209276b323926ca Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Tue, 14 Jan 2020 07:15:56 -0600 Subject: [PATCH] first --- defaults/.keep | 0 files/.keep | 0 handlers/.keep | 0 meta/.keep | 0 tasks/main.yml | 30 ++++++++++++++++++++++++++++++ templates/.keep | 0 vars/.keep | 0 7 files changed, 30 insertions(+) create mode 100644 defaults/.keep create mode 100644 files/.keep create mode 100644 handlers/.keep create mode 100644 meta/.keep create mode 100644 tasks/main.yml create mode 100644 templates/.keep create mode 100644 vars/.keep diff --git a/defaults/.keep b/defaults/.keep new file mode 100644 index 0000000..e69de29 diff --git a/files/.keep b/files/.keep new file mode 100644 index 0000000..e69de29 diff --git a/handlers/.keep b/handlers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/meta/.keep b/meta/.keep new file mode 100644 index 0000000..e69de29 diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..ca9b9f4 --- /dev/null +++ b/tasks/main.yml @@ -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 diff --git a/templates/.keep b/templates/.keep new file mode 100644 index 0000000..e69de29 diff --git a/vars/.keep b/vars/.keep new file mode 100644 index 0000000..e69de29