prometheus/server/tasks/main.yaml
changeset 53 9e4f750f5d36
parent 52 5a5071d4eaad
child 54 1ea4f1c7c675
--- a/prometheus/server/tasks/main.yaml	Sun Jun 28 10:32:15 2020 -0500
+++ b/prometheus/server/tasks/main.yaml	Sun Jun 28 12:27:27 2020 -0500
@@ -21,6 +21,10 @@
     - restart prometheus service
     - restart grafana service
 
+- name: ensure grafana is started
+  become: yes
+  systemd: name="grafana-server.service" enabled="yes" state="started"
+
 - name: install grafana prometheus data source
   become: yes
   grafana_datasource:
@@ -43,9 +47,9 @@
     mode: "0640"
   loop: "{{prometheus_server_grafana_dashboards}}"
 
-- name: install grafana dashboards
-  become: yes
-  grafana_dashboard:
-    grafana_url: "http://localhost:3000"
-    path: "/tmp/{{item}}"
-  loop: "{{prometheus_server_grafana_dashboards}}"
+# - name: install grafana dashboards
+#   become: yes
+#   grafana_dashboard:
+#     grafana_url: "http://localhost:3000"
+#     path: "/tmp/{{item}}"
+#   loop: "{{prometheus_server_grafana_dashboards}}"