From 50492a1b34b6b766c1369425a27678968bb4d28e Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 21 Nov 2020 22:57:13 +0100 Subject: First try with grafana automation. --- roles/prometheus/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/prometheus/tasks/main.yml (limited to 'roles/prometheus') 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 -- cgit v1.2.3