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

13 lines
319 B
YAML
Raw Normal View History

2019-04-13 21:04:40 +02:00
---
- 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