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

Fix prometheus-node ci errors

parent b6f2faf2
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
apt: apt:
update_cache: true update_cache: true
name: prometheus-node-exporter name: prometheus-node-exporter
install_recommends: no # Do not install smartmontools install_recommends: false # Do not install smartmontools
register: apt_result register: apt_result
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
apt: apt:
update_cache: true update_cache: true
name: prometheus-node-exporter name: prometheus-node-exporter
install_recommends: no install_recommends: false
state: latest
default_release: stretch-backports default_release: stretch-backports
register: apt_result register: apt_result
retries: 3 retries: 3
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
- name: Activate prometheus-node-exporter service - name: Activate prometheus-node-exporter service
systemd: systemd:
name: prometheus-node-exporter name: prometheus-node-exporter
enabled: yes enabled: true
state: started state: started
# Doesn't work on Debian Stretch with the old prometheus package # Doesn't work on Debian Stretch with the old prometheus package
...@@ -35,6 +34,6 @@ ...@@ -35,6 +34,6 @@
lineinfile: lineinfile:
path: /etc/default/prometheus-node-exporter path: /etc/default/prometheus-node-exporter
regexp: '^ARGS=' 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 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