From 651bf323df60610fd7235c5c7b39460f82af853e Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 16 Dec 2025 21:00:08 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactor=20Pro?= =?UTF-8?q?xmox=20playbook=20to=20use=20ansible.builtin.expect=20with=20ig?= =?UTF-8?q?nore=5Ferrors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the `proxmox.yml` file to include the use of `ansible.builtin.expect` module and set `ignore_errors` to handle exceptions gracefully. --- tasks/proxmox.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/proxmox.yml b/tasks/proxmox.yml index d268727..6572d6b 100644 --- a/tasks/proxmox.yml +++ b/tasks/proxmox.yml @@ -38,7 +38,7 @@ pve_mod_gui_sensors_installed: null - name: Run pve-mod-gui-sensors script with predefined answers - expect: + ansible.builtin.expect: command: bash /tmp/pve-mod-gui-sensors.sh install responses: 'Display temperatures for all cores \[C\] or average per CPU \[a\].*\(C/a\):.*': 'a' @@ -46,6 +46,7 @@ 'Enable UPS information\?.*\(y/N\):.*': 'n' 'Enable system information\?.*\(1/2/n\):.*': '2' register: pve_mod_gui_sensors_installed + ignore_errors: true - name: Wait for Proxmox Web GUI to be up wait_for: