diff options
| author | Luke Hoersten <[email protected]> | 2020-05-16 09:44:05 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-05-16 09:44:05 -0500 |
| commit | a5affabbc99105565661c7a9535e26db0bc22cf9 (patch) | |
| tree | 362e4774b2efd4a4af615185e78ec51ad8218f62 /prometheus/rpi-client/tasks | |
| parent | 85b09b3cbdaabbc8ee7e88247c78fb77ab81667b (diff) | |
rpi-export: disable gpu temp before systemd config.
Diffstat (limited to 'prometheus/rpi-client/tasks')
| -rw-r--r-- | prometheus/rpi-client/tasks/main.yaml | 18 |
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 |
