Fix deployment of Grafana

Some tasks were improperly generalized in change:
I4f1aa03e9a9faaf8aecd556dfeafdb834042e4cd
(simplify handlers)
This patch reverts that.

Change-Id: I38fbe319da50fc7d5a3fa3c4890f039ae900a60c
Closes-bug: #1845258
Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
This commit is contained in:
Radosław Piliszek 2019-09-25 08:52:56 +02:00
parent 1982c9809f
commit 84f439aa76

View File

@ -60,7 +60,7 @@
with_items:
- "{{ check_extra_conf_grafana.files }}"
notify:
- Restart {{ item.key }} container
- Restart grafana container
- name: Check if custom grafana home dashboard exists
local_action: "stat path={{ node_custom_config }}/grafana/grafana_home_dashboard.json"
@ -74,7 +74,7 @@
mode: "0660"
when: grafana_custom_dashboard_file.stat.exists
notify:
- Restart {{ item.key }} container
- Restart grafana container
- name: Configuring Prometheus as data source for Grafana
vars:
@ -93,7 +93,7 @@
- "{{ node_custom_config }}/grafana/prometheus.yaml"
- "prometheus.yaml.j2"
notify:
- Restart {{ item.key }} container
- Restart grafana container
- name: Check grafana containers
become: true