From 7854c4f95c16a47215711741ecec983e041d89ea Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 16 Dec 2025 19:21:29 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20sensor=20monitoring?= =?UTF-8?q?=20task=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a new task to execute the `pve-mod-gui-sensors.sh` script with predefined answers, enhancing system monitoring capabilities. --- tasks/proxmox.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/proxmox.yml b/tasks/proxmox.yml index d273490..f80a9d9 100644 --- a/tasks/proxmox.yml +++ b/tasks/proxmox.yml @@ -32,4 +32,12 @@ - name: Run script with predefined input ansible.builtin.shell: | printf "a\nC\nN\n2\n" | /usr/local/bin/pve-mod-gui-sensors.sh - \ No newline at end of file + + - name: Run pve-mod-gui-sensors script with predefined answers (once) + expect: + command: /usr/local/src/pve-mod-gui-sensors.sh + responses: + 'Display temperatures for all cores \[C\] or average per CPU \[a\].*\(C/a\):.*': 'a' + 'Display temperatures in Celsius \[C\] or Fahrenheit \[f\].*\(C/f\):.*': 'c' + 'Enable UPS information\?.*\(y/N\):.*': 'n' + 'Enable system information\?.*\(1/2/n\):.*': '2'