aboutsummaryrefslogtreecommitdiffstats
path: root/roles/prometheus
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-21 22:57:13 +0100
committerbinary <me@rgoncalves.se>2020-11-21 22:57:13 +0100
commit50492a1b34b6b766c1369425a27678968bb4d28e (patch)
treef5db6ca67d6e193259d786c5e3b820fab11ec235 /roles/prometheus
parenta2705cf6057208708cefcfcb2ee0d285b9d3ec47 (diff)
downloadinfrastructure-50492a1b34b6b766c1369425a27678968bb4d28e.tar.gz
First try with grafana automation.
Diffstat (limited to 'roles/prometheus')
-rw-r--r--roles/prometheus/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml
new file mode 100644
index 0000000..aacdb65
--- /dev/null
+++ b/roles/prometheus/tasks/main.yml
@@ -0,0 +1,11 @@
+
+# prometheus ~~ roles/prometheus/tasks/main.yml
+# init prometheus database, mainly used by grafana
+
+---
+
+- name: install prometheus
+ package: name=prometheus state=present
+
+- name: ensure prometheus service is started and enabled
+ service: name=prometheus state=restarted enabled=true
remember that computers suck.