2021-11-28 22:36:39 +00:00
|
|
|
- hosts: localhost
|
|
|
|
gather_facts: no
|
|
|
|
connection: local
|
|
|
|
tasks:
|
|
|
|
- name: add chart repos
|
|
|
|
community.kubernetes.helm_repository:
|
|
|
|
name: "{{item.repo}}"
|
|
|
|
repo_url: "{{item.url}}"
|
|
|
|
loop: "{{helm_repos}}"
|
|
|
|
- name: install charts
|
|
|
|
community.kubernetes.helm:
|
|
|
|
name: "{{item.name}}"
|
|
|
|
chart_ref: "{{item.chart}}"
|
2021-11-29 19:51:41 +00:00
|
|
|
chart_version: "{{item.version|default(omit)}}"
|
2021-11-28 22:36:39 +00:00
|
|
|
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: files/grafana-provisioning.yml
|