prometheus/rpi-client/tasks/main.yaml
changeset 27 8fddefdd948b
parent 24 c0dde2a4b276
child 30 bf16f2477a11
equal deleted inserted replaced
26:b0e4ad2f4291 27:8fddefdd948b
    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"