mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
fix: helm version check in capkk
Signed-off-by: William Wang <williamw0825@gmail.com>
This commit is contained in:
parent
2285b318d2
commit
4609eb05e7
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Check if helm is installed
|
||||
ignore_errors: true
|
||||
command: helm version --template "{{ .Version }}"
|
||||
command: helm version --template "{{ "{{" }} .Version {{ "}}" }}"
|
||||
register: helm_install_version
|
||||
- name: Install helm
|
||||
when: or (.helm_install_version.error | empty | not) (.helm_install_version.stdout | ne .helm_version)
|
||||
|
|
|
|||
Loading…
Reference in New Issue