2 - name: List helm repos
3 command: "{{ helm_bin_dir }}/helm repo list"
4 register: helm_repo_list
5 changed_when: false # for idempotency
7 - helm_repo_list.rc > 0
8 - "'Error: no repositories to show' not in helm_repo_list.stderr"
11 command: "{{ helm_bin_dir }}/helm repo add {{ helm_repository_name | mandatory }} {{ helm_repository_url | mandatory }}"
12 when: "'local' not in helm_repo_list.stdout"
13 changed_when: true # when executed its a changed type of action
15 - name: Check for deploy plugin presence
17 path: '{{ helm_data_dir }}/plugins/deploy/deploy.sh'
18 register: deploy_plugin_presence