- become: yes
- - name: 'Move helm to /usr/local/bin and set as executable'
- command: 'mv /tmp/linux-amd64/helm /usr/local/bin/helm'
- become: yes
- - name: 'Check helm.'
- command: 'which helm'
+ become: true
+ - name: "Move Helm 3.8 bin to /usr/local/bin and set as executable"
+ command: "mv /tmp/helm3.8/linux-amd64/helm /usr/local/bin/helm3.8"
+ become: true
+ - name: "Check Helm 3.8"
+ command: "which helm3.8"
+ - name: "Check kubectl {{kubectl_version}}"
+ command: "which kubectl"
+
+ - name: "Install Helm 3.8"
+ shell: |
+ echo "----> Installing helm3.8"
+ wget 'https://get.helm.sh/helm-v{{helm3_8_version}}-linux-amd64.tar.gz'
+ tar -xvf 'https://get.helm.sh/helm-v{{helm3_8_version}}-linux-amd64.tar.gz'
+ mv linux-amd64/helm /usr/local/bin/helm3.8
+ which helm3.8
+ become: true