[MOLECULE] Drop custom helm3 scenario for application role
[oom/offline-installer.git] / ansible / roles / application / tasks / setup-helm3.yml
1 ---
2 - name: List helm repos
3   command: "{{ helm_bin_dir }}/helm repo list"
4   register: helm_repo_list
5   changed_when: false  # for idempotency
6   failed_when:
7     - helm_repo_list.rc > 0
8     - "'Error: no repositories to show' not in helm_repo_list.stderr"
9
10 - name: Helm Add Repo
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
14
15 - name: Check for deploy plugin presence
16   stat:
17     path: '{{ helm_data_dir }}/plugins/deploy/deploy.sh'
18   register: deploy_plugin_presence