src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus/server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus/server/tasks')
-rw-r--r--prometheus/server/tasks/main.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/prometheus/server/tasks/main.yaml b/prometheus/server/tasks/main.yaml
new file mode 100644
index 0000000..470c1cc
--- /dev/null
+++ b/prometheus/server/tasks/main.yaml
@@ -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