This repository has been archived on 2021-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-server/roles/base/tasks/monitoring.yml

13 lines
319 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={{ vpn.v4.address }}:9100"
notify: restart-node-exporter