feat ✨: Add sensor monitoring task script
Introduce a new task to execute the `pve-mod-gui-sensors.sh` script with predefined answers, enhancing system monitoring capabilities.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
- 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'
|
||||
|
||||
Reference in New Issue
Block a user