diff options
Diffstat (limited to 'ansible/roles/k8s/tasks/install_helm.yml')
| -rw-r--r-- | ansible/roles/k8s/tasks/install_helm.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ansible/roles/k8s/tasks/install_helm.yml b/ansible/roles/k8s/tasks/install_helm.yml index 244950a..4527a96 100644 --- a/ansible/roles/k8s/tasks/install_helm.yml +++ b/ansible/roles/k8s/tasks/install_helm.yml @@ -1,30 +1,30 @@ --- - name: Check if Helm is already installed - command: helm version --short + ansible.builtin.command: helm version --short register: helm_installed ignore_errors: true changed_when: false - name: Download Helm install script - get_url: + ansible.builtin.get_url: url: https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 dest: /tmp/get_helm.sh mode: '0755' when: helm_installed is failed or helm_installed.rc != 0 - name: Install Helm - command: /tmp/get_helm.sh + ansible.builtin.command: /tmp/get_helm.sh become: true when: helm_installed is failed or helm_installed.rc != 0 register: helm_install_result changed_when: "'Helm' in helm_install_result.stdout" - name: Verify Helm installation - command: helm version --short + ansible.builtin.command: helm version --short register: helm_version changed_when: false - name: Display Helm version - debug: + ansible.builtin.debug: msg: "Helm {{ helm_version.stdout }} is installed" ... |
