copr-be: handler for restarting node_exporter
This commit is contained in:
parent
0cbe1212a8
commit
aa81a9cebd
2 changed files with 4 additions and 0 deletions
|
@ -10,3 +10,6 @@
|
||||||
|
|
||||||
- name: restart lighttpd
|
- name: restart lighttpd
|
||||||
action: service name=lighttpd state=restarted
|
action: service name=lighttpd state=restarted
|
||||||
|
|
||||||
|
- name: restart node_exporter
|
||||||
|
action: service name=node_exporter state=restarted
|
||||||
|
|
|
@ -167,6 +167,7 @@
|
||||||
path: /etc/sysconfig/node_exporter
|
path: /etc/sysconfig/node_exporter
|
||||||
regexp: '^OPTIONS='
|
regexp: '^OPTIONS='
|
||||||
line: 'OPTIONS=--collector.textfile.directory /var/lib/node_exporter/textfile_collector --collector.systemd'
|
line: 'OPTIONS=--collector.textfile.directory /var/lib/node_exporter/textfile_collector --collector.systemd'
|
||||||
|
backrefs: yes
|
||||||
notify: restart node_exporter
|
notify: restart node_exporter
|
||||||
|
|
||||||
# setup dirs for the ansible execution off of provisioning
|
# setup dirs for the ansible execution off of provisioning
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue