+- name: Add local helm repo (helm v3+)
+ command: "helm repo add local {{ local_repo_url }}"
+ register: helm_repo_add_local_result
+ changed_when: true
+ when: >
+ helm_version is version('v3.0.0', '>=')
+ and execution_mode == "offline-deployment"
+ and helm_repo_list_result is not search(local_repo_url)
+