From 1cb30cc0aa4fda9bf0bac0b41ace862b1db434b8 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 9 Feb 2020 12:05:37 -0600 Subject: Moved roles to top level --- prometheus/client/tasks/main.yaml | 4 ++++ prometheus/server/tasks/main.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 prometheus/client/tasks/main.yaml create mode 100644 prometheus/server/tasks/main.yaml (limited to 'prometheus') diff --git a/prometheus/client/tasks/main.yaml b/prometheus/client/tasks/main.yaml new file mode 100644 index 0000000..f763a88 --- /dev/null +++ b/prometheus/client/tasks/main.yaml @@ -0,0 +1,4 @@ +--- + +- name: install prometheus node exporter + apt: name="prometheus-node-exportery" 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 -- cgit v1.2.3