From fb465a666eb45021db90ba45733b7a7bfd706609 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 11 Jan 2022 00:16:54 -0600 Subject: [PATCH] Add temperature sensors to Pis --- playbooks/device_types_pi4b.yml | 9 +++++++++ playbooks/prod_web.yml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100755 playbooks/device_types_pi4b.yml diff --git a/playbooks/device_types_pi4b.yml b/playbooks/device_types_pi4b.yml new file mode 100755 index 0000000..7d8b331 --- /dev/null +++ b/playbooks/device_types_pi4b.yml @@ -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 ] diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 72af475..31825de 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -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