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