init
This commit is contained in:
20
ansible/roles/k8s/install/01_helm/tasks/main.yml
Normal file
20
ansible/roles/k8s/install/01_helm/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Download Helm install script
|
||||
ansible.builtin.get_url:
|
||||
url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
|
||||
dest: /tmp/get-helm-3.sh
|
||||
mode: '0755'
|
||||
|
||||
- name: Install Helm
|
||||
ansible.builtin.command: /tmp/get-helm-3.sh
|
||||
args:
|
||||
creates: /usr/local/bin/helm
|
||||
|
||||
- name: Verify Helm installation
|
||||
ansible.builtin.command: helm version
|
||||
register: helm_version_output
|
||||
changed_when: false
|
||||
|
||||
- name: Show Helm version
|
||||
ansible.builtin.debug:
|
||||
var: helm_version_output.stdout
|
||||
Reference in New Issue
Block a user