prometheus/client/tasks/main.yaml
changeset 15 6d7db9bae6c2
parent 6 3b1f18f6a5a4
--- a/prometheus/client/tasks/main.yaml	Fri May 01 19:17:43 2020 -0500
+++ b/prometheus/client/tasks/main.yaml	Sat May 02 11:38:57 2020 -0500
@@ -4,6 +4,10 @@
   become: yes
   apt: name="prometheus-node-exporter"
 
+- name: ensure prometheus node exporter is started
+  become: yes
+  systemd: name="prometheus-node-exporter.service" enabled="yes" state="started"
+
 #   # Nginx
 # - name: check if running nginx
 #   stat: path="/etc/nginx/"