prometheus/rpi-client/tasks/main.yaml
changeset 21 fecc27fe5aef
parent 15 6d7db9bae6c2
child 22 adeda2afeb75
equal deleted inserted replaced
20:9cacee5eec83 21:fecc27fe5aef
    15   copy:
    15   copy:
    16     src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service"
    16     src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter.service"
    17     remote_src: yes
    17     remote_src: yes
    18     dest: "/lib/systemd/system/rpi_exporter.service"
    18     dest: "/lib/systemd/system/rpi_exporter.service"
    19 
    19 
       
    20 - name: disable GPU temp scraping
       
    21   become: yes
       
    22   lineinfile:
       
    23     path: "/lib/systemd/system/rpi_exporter.service"
       
    24     regexp: "^ExecStart=/usr/local/bin/rpi_exporter"
       
    25     line: "ExecStart=/usr/local/bin/rpi_exporter --collector.gpu=false"
       
    26 
    20 - name: install rpi-exporter binary
    27 - name: install rpi-exporter binary
    21   become: yes
    28   become: yes
    22   copy:
    29   copy:
    23     src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter"
    30     src: "/tmp/{{prometheus_client_rpi_dest}}/rpi_exporter"
    24     remote_src: yes
    31     remote_src: yes