equal
deleted
inserted
replaced
16 lineinfile: |
16 lineinfile: |
17 path: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service" |
17 path: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service" |
18 regexp: "^ExecStart=/usr/local/bin/rpi_exporter" |
18 regexp: "^ExecStart=/usr/local/bin/rpi_exporter" |
19 line: "ExecStart=/usr/local/bin/rpi_exporter --no-collector.gpu" |
19 line: "ExecStart=/usr/local/bin/rpi_exporter --no-collector.gpu" |
20 when: not prometheus_client_rpi_collect_gpu_temp |
20 when: not prometheus_client_rpi_collect_gpu_temp |
|
21 changed_when: false |
21 |
22 |
22 - name: install systemd service for rpi-exporter |
23 - name: install systemd service for rpi-exporter |
23 become: yes |
24 become: yes |
24 copy: |
25 copy: |
25 src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service" |
26 src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service" |