add install for prometheus node exporter
This commit is contained in:
parent
ebb0ade66d
commit
3d6da8f0a2
1 changed files with 17 additions and 0 deletions
17
roles/prometheus-node-exporter/tasks/main.yml
Normal file
17
roles/prometheus-node-exporter/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
- name: Install Prometheus Node exporter
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- prometheus-node-exporter
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
register: apt_result
|
||||||
|
retries: 3
|
||||||
|
until: apt_result is succeeded
|
||||||
|
|
||||||
|
# TODO: add auth
|
||||||
|
#
|
||||||
|
# Create the file --web.config=/etc/node_exporter/config.yaml
|
||||||
|
# and add --web.config=/etc/node_exporter/config.yaml to
|
||||||
|
# the args in /etc/default/prometheus-node-exporter
|
||||||
|
#
|
Loading…
Reference in a new issue