This repository has been archived on 2020-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-laptop/roles/monitoring/tasks/node_exporter.yml

13 lines
308 B
YAML

---
- name: install prometheus node exporter
apt:
name: prometheus-node-exporter
state: present
- name: set node exporter config
lineinfile:
path: /etc/default/prometheus-node-exporter
regexp: '^ARGS='
line: ARGS="--web.listen-address=10.80.0.2:9100"
notify: restart-node-exporter