From a5affabbc99105565661c7a9535e26db0bc22cf9 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 16 May 2020 09:44:05 -0500 Subject: rpi-export: disable gpu temp before systemd config. --- prometheus/rpi-client/tasks/main.yaml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'prometheus') 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 -- cgit v1.2.3