src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus/server/tasks/main.yaml
blob: 470c1cc19423979a12c10bc5ca4d66b6eb221d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---

- name: add grafana apt key
  become: yes
  apt_key: url="https://packages.grafana.com/gpg.key"

- name: add grafana apt repo
  become: yes
  apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main"

- name: install prometheus and grafana
  become: yes
  apt: name="{{item}}" state="latest"
  with_items:
    - "prometheus"
    - "grafana"

# /etc/prometheus/prometheus.yml
# /etc/grafana/grafana.ini