aboutsummaryrefslogtreecommitdiff
path: root/roles/monitoring/tasks/main.yaml
blob: 27bec574cb2a7cce39e58b61bbf82743b8252da2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Add Prometheus remote chart
  kubernetes.core.helm_repository:
    name: prometheus
    repo_url: https://prometheus-community.github.io/helm-charts
  delegate_to: localhost
  run_once: true

- name: Deploy prometheus
  kubernetes.core.helm:
    name: prometheus
    chart_ref: prometheus/prometheus
    namespace: default
    state: "{%- if monitoring.enabled -%} present {%- else -%} absent {%- endif -%}"
    values:
  delegate_to: localhost
  run_once: true