Skip to content
Snippets Groups Projects
Verified Commit 78e1e38b authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

[Prometheus] Listen on adm only when buster

parent f30e5c9f
No related branches found
No related tags found
No related merge requests found
---
- name: Install Prometheus node-exporter
apt:
update_cache: true
......@@ -7,3 +6,13 @@
register: apt_result
retries: 3
until: apt_result is succeeded
# Doesn't work on Debian Stretch
- name: Make Prometheus node-exporter listen on adm only
when:
- ansible_distribution_release == 'buster'
lineinfile:
path: /etc/default/prometheus-node-exporter
regexp: '^ARGS='
line: "ARGS=\"--web.listen-address={{ ansible_fqdn }}:9100\""
notify: Restart prometheus-node-exporter
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment