equal
deleted
inserted
replaced
8 become: yes |
8 become: yes |
9 apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main" |
9 apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main" |
10 |
10 |
11 - name: install prometheus and grafana |
11 - name: install prometheus and grafana |
12 become: yes |
12 become: yes |
13 apt: name="{{item}}" state="latest" |
13 apt: name="{{prometheus_server_apt_packages}}" state="latest" |
14 with_items: |
|
15 - "prometheus" |
|
16 - "grafana" |
|
17 |
14 |
18 # /etc/prometheus/prometheus.yml |
15 - name: configure prometheus |
|
16 become: yes |
|
17 template: |
|
18 src: "{{prometheus_server_conf}}" |
|
19 dest: "/etc/prometheus/prometheus.yml" |
|
20 notify: restart prometheus service |
|
21 |
19 # /etc/grafana/grafana.ini |
22 # /etc/grafana/grafana.ini |