# vim: filetype=yaml.ansible --- - hosts: localhost gather_facts: no connection: local tasks: - name: load carts list and definition include_vars: helm.yml - name: add chart repos kubernetes.core.helm_repository: name: "{{ item.chart.split('/')[0] }}" repo_url: "{{ item.url }}" loop: "{{ helm_charts }}" - name: update helm repos command: helm repo update changed_when: no - name: install charts kubernetes.core.helm: name: "{{ item.name }}" chart_ref: "{{ item.chart }}" chart_version: "{{ item.version|default(omit) }}" values: "{{ item.vals|default(omit) }}" release_namespace: "{{ item.namespace | default(item.name) }}" create_namespace: true loop: "{{ helm_charts }}" - name: apply post-install manifests k8s: src: "{{ item }}" with_fileglob: - files/*.yml