From 7fc9958b1301b84185d6babb27a20b468acd1558 Mon Sep 17 00:00:00 2001 From: Anton Boritskiy Date: Tue, 13 Aug 2019 17:47:04 +0100 Subject: [PATCH] AD-HOC fix (metrics): service autostart node exporter service was not enabled, i.e. it was not added to list of system auto-starting services, that caused monitoring alert upon server reboot. --- tasks/systemd.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/systemd.yml b/tasks/systemd.yml index 4bfa56a..bf64754 100644 --- a/tasks/systemd.yml +++ b/tasks/systemd.yml @@ -6,3 +6,9 @@ owner: "root" mode: "u=rwx,g=r,o=r" notify: "restart node_exporter" + +- name: "Make sure node exporter service is running and auto-starting" + service: + name: "node_exporter" + state: "started" + enabled: "yes"