src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus/rpi-client/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus/rpi-client/tasks')
-rw-r--r--prometheus/rpi-client/tasks/main.yaml18
1 files changed, 8 insertions, 10 deletions
diff --git a/prometheus/rpi-client/tasks/main.yaml b/prometheus/rpi-client/tasks/main.yaml
index f2dded9..7e4fbc5 100644
--- a/prometheus/rpi-client/tasks/main.yaml
+++ b/prometheus/rpi-client/tasks/main.yaml
@@ -11,23 +11,21 @@
dest: "/tmp/"
notify: restart rpi_exporter
-- name: install systemd service for rpi-exporter
- become: yes
- copy:
- src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service"
- remote_src: yes
- dest: "/lib/systemd/system/rpi_exporter.service"
- notify: restart rpi_exporter
-
- name: disable GPU temp scraping
become: yes
lineinfile:
- path: "/lib/systemd/system/rpi_exporter.service"
+ path: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service"
regexp: "^ExecStart=/usr/local/bin/rpi_exporter"
line: "ExecStart=/usr/local/bin/rpi_exporter --no-collector.gpu"
when: not prometheus_client_rpi_collect_gpu_temp
- notify: restart rpi_exporter
+- name: install systemd service for rpi-exporter
+ become: yes
+ copy:
+ src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service"
+ remote_src: yes
+ dest: "/lib/systemd/system/rpi_exporter.service"
+ notify: restart rpi_exporter
- name: install rpi-exporter binary
become: yes