Exclude Stretch from node config

This commit is contained in:
Alexandre Iooss 2019-05-05 16:24:04 +02:00
parent c53d62712f
commit b6573e68ae
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 3 additions and 0 deletions

View File

@ -7,7 +7,10 @@
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 != 'stretch'
lineinfile:
path: /etc/default/prometheus-node-exporter
regexp: '^ARGS='