Add temperature sensors to Pis

This commit is contained in:
Salt 2022-01-11 00:16:54 -06:00
parent 4a1c5ea8e1
commit fb465a666e
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: device_types_pi4b-2g,device-type-pi4b-4g,device-type-pi4b-4g-storage
roles:
- role: ansible-role-lm-sensors
vars:
lm_sensors_force_detection: yes
tags: [ lm-sensors ]

View File

@ -231,6 +231,10 @@
- name: CPU1 Temperature
command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_temp -n -w 65 -c 75 --sensor coretemp-isa-0001
hostgroup: device-type-r720
# Pi 4 4G
- name: CPU Temperature
command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_temp -n -w 65 -c 75 --sensor cpu_thermal-virtual-0
hostgroup: device-type-pi4b-2g,device-type-pi4b-4g,device-type-pi4b-4g-storage
# Device role checks
# hypervisor (which is assumed to be Proxmox)
- name: PVE Unit pve-firewall.service