Fix buster detection

certbot_on_virtu
Alexandre Iooss 2019-05-13 18:07:40 +02:00
parent 322a1e8dd6
commit 4bab036827
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ remplacés par une condition :
* pour tester les versions de Debian,
```YAML
ansible_distribution_release == 'stretch'
ansible_lsb.codename == 'stretch'
```
* pour tester si c'est un CPU Intel x86_64,

View File

@ -16,7 +16,7 @@
# Doesn't work on Debian Stretch
- name: Make Prometheus node-exporter listen on adm only
when:
- ansible_distribution_release == 'buster'
- ansible_lsb.codename == 'buster'
lineinfile:
path: /etc/default/prometheus-node-exporter
regexp: '^ARGS='

View File

@ -24,9 +24,9 @@
# Doesn't work on Debian Stretch
- name: Make Prometheus snmp-exporter listen on adm only
when:
- ansible_distribution_release == 'buster'
- ansible_lsb.codename == 'buster'
lineinfile:
path: /etc/default/prometheus-node-exporter
path: /etc/default/prometheus-snmp-exporter
regexp: '^ARGS='
line: "ARGS=\"--web.listen-address={{ ansible_fqdn }}:9116\""
notify: Restart prometheus-snmp-exporter