diff --git a/roles/ensure-helm/tasks/main.yaml b/roles/ensure-helm/tasks/main.yaml index 232297259..bd74cfd52 100644 --- a/roles/ensure-helm/tasks/main.yaml +++ b/roles/ensure-helm/tasks/main.yaml @@ -15,6 +15,9 @@ - name: Initialize Helm shell: helm init --client-only + # NOTE(b.schanzel): The init command was removed with helm v3 and no + # initialization is needed anymore + when: helm_version is version('3', '<') tags: # NOTE(mnaser): The `helm` module does not support running init only. - skip_ansible_lint