From aa81a9cebd4a5436bef243b446baec0d346af68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvie=20Chlupov=C3=A1?= Date: Mon, 29 Nov 2021 15:03:05 +0100 Subject: [PATCH] copr-be: handler for restarting node_exporter --- roles/copr/backend/handlers/main.yml | 3 +++ roles/copr/backend/tasks/main.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/roles/copr/backend/handlers/main.yml b/roles/copr/backend/handlers/main.yml index 516c380599..1dd16fcf41 100644 --- a/roles/copr/backend/handlers/main.yml +++ b/roles/copr/backend/handlers/main.yml @@ -10,3 +10,6 @@ - name: restart lighttpd action: service name=lighttpd state=restarted + +- name: restart node_exporter + action: service name=node_exporter state=restarted diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index be0534de47..d08ac1fc18 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -167,6 +167,7 @@ path: /etc/sysconfig/node_exporter regexp: '^OPTIONS=' line: 'OPTIONS=--collector.textfile.directory /var/lib/node_exporter/textfile_collector --collector.systemd' + backrefs: yes notify: restart node_exporter # setup dirs for the ansible execution off of provisioning