Fix prometheus-node ci errors

certbot_on_virtu
Alexandre Iooss 2019-10-04 09:15:51 +02:00
parent b6f2faf279
commit 8294a1c8b4
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,7 @@
apt:
update_cache: true
name: prometheus-node-exporter
install_recommends: no # Do not install smartmontools
install_recommends: false # Do not install smartmontools
register: apt_result
retries: 3
until: apt_result is succeeded
@ -15,8 +15,7 @@
apt:
update_cache: true
name: prometheus-node-exporter
install_recommends: no
state: latest
install_recommends: false
default_release: stretch-backports
register: apt_result
retries: 3
@ -27,7 +26,7 @@
- name: Activate prometheus-node-exporter service
systemd:
name: prometheus-node-exporter
enabled: yes
enabled: true
state: started
# Doesn't work on Debian Stretch with the old prometheus package
@ -35,6 +34,6 @@
lineinfile:
path: /etc/default/prometheus-node-exporter
regexp: '^ARGS='
line: "ARGS=\"--web.listen-address={{ ansible_hostname }}.adm.crans.org:9100\""
line: |
ARGS="--web.listen-address={{ ansible_hostname }}.adm.crans.org:9100"
notify: Restart prometheus-node-exporter