prometheus/server/tasks/main.yaml
changeset 2 2556522a2a45
parent 1 fd351734f007
child 5 4f014cdac0b1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/prometheus/server/tasks/main.yaml	Sun Feb 09 12:05:37 2020 -0600
@@ -0,0 +1,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