Tomas Levora | 5ea00a9 | 2018-12-19 14:36:36 +0100 | [diff] [blame] | 1 | --- |
| 2 | - name: Helm init and upgrade |
| 3 | command: | |
| 4 | {{ helm_bin_dir }}/helm init |
| 5 | --upgrade |
| 6 | --skip-refresh |
| 7 | |
| 8 | - name: Wait for helm |
| 9 | wait_for: timeout=10 |
| 10 | delegate_to: localhost |
| 11 | |
| 12 | - name: Get all helm repos |
| 13 | command: "{{ helm_bin_dir }}/helm repo list" |
| 14 | register: repos |
| 15 | |
| 16 | - name: Remove stable repo |
| 17 | command: "{{ helm_bin_dir }}/helm repo remove stable" |
| 18 | when: "'stable' in repos.stdout" |
| 19 | |
| 20 | - name: Helm Serve |
| 21 | shell: "{{ helm_bin_dir }}/helm serve &" |
| 22 | async: 45 |
| 23 | poll: 0 |
| 24 | |
| 25 | - name: Helm Add Repo |
| 26 | command: "{{ helm_bin_dir }}/helm repo add {{ helm_repository_name }} {{ helm_repository_url }}" |
| 27 | |
| 28 | - name: Helm Make All |
| 29 | make: |
| 30 | chdir: "{{ app_helm_charts_directory }}" |
| 31 | target: all |
| 32 | |
| 33 | - name: Helm Install application {{ app_name }} |
| 34 | command: "helm install {{ helm_repository_name }}/{{ app_helm_chart_name }} --name {{ app_helm_release_name }} --namespace {{ app_kubernetes_namespace }}" |