2022-01-02 19:06:43 +00:00
|
|
|
# vim: filetype=yaml.ansible
|
|
|
|
---
|
2021-11-28 22:36:39 +00:00
|
|
|
- hosts: localhost
|
|
|
|
gather_facts: no
|
|
|
|
connection: local
|
|
|
|
tasks:
|
|
|
|
- name: add chart repos
|
|
|
|
community.kubernetes.helm_repository:
|
2021-12-05 13:12:26 +00:00
|
|
|
name: "{{ item.repo }}"
|
|
|
|
repo_url: "{{ item.url }}"
|
|
|
|
loop: "{{ helm_repos }}"
|
2022-01-02 19:06:04 +00:00
|
|
|
- name: update helm repos
|
|
|
|
command: helm repo update
|
|
|
|
changed_when: no
|
2021-11-28 22:36:39 +00:00
|
|
|
- name: install charts
|
|
|
|
community.kubernetes.helm:
|
2021-12-05 13:12:26 +00:00
|
|
|
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) }}"
|
2021-11-28 22:36:39 +00:00
|
|
|
create_namespace: true
|
2021-12-05 13:12:26 +00:00
|
|
|
loop: "{{ helm_charts }}"
|
2021-11-28 22:36:39 +00:00
|
|
|
- name: apply post-install manifests
|
|
|
|
k8s:
|
|
|
|
src: files/grafana-provisioning.yml
|