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

View file

@ -7,7 +7,10 @@
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
# Doesn't work on Debian Stretch
- name: Make Prometheus node-exporter listen on adm only - name: Make Prometheus node-exporter listen on adm only
when:
- ansible_distribution_release != 'stretch'
lineinfile: lineinfile:
path: /etc/default/prometheus-node-exporter path: /etc/default/prometheus-node-exporter
regexp: '^ARGS=' regexp: '^ARGS='