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'