copr-be: handler for restarting node_exporter

This commit is contained in:
Silvie Chlupová 2021-11-29 15:03:05 +01:00
parent 0cbe1212a8
commit aa81a9cebd
2 changed files with 4 additions and 0 deletions

View file

@ -10,3 +10,6 @@
- name: restart lighttpd
action: service name=lighttpd state=restarted
- name: restart node_exporter
action: service name=node_exporter state=restarted

View file

@ -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