fix: helm version check in capkk

Signed-off-by: William Wang <williamw0825@gmail.com>
This commit is contained in:
William Wang 2025-12-01 18:58:22 +08:00
parent 2285b318d2
commit 4609eb05e7

View File

@ -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)