From 8005cd5dd74ba6550cde7db0c6b9b0782d737818 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 16 Dec 2025 19:29:37 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20wait-for=20task=20to?= =?UTF-8?q?=20ensure=20Proxmox=20Web=20GUI=20is=20up=20before=20running=20?= =?UTF-8?q?scripts.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces a new wait-for task that waits for the Proxmox Web GUI to be fully operational before proceeding with subsequent scripts. This ensures that all dependencies are ready, preventing potential errors during script execution. --- tasks/proxmox.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tasks/proxmox.yml b/tasks/proxmox.yml index 57140d3..67dcbc2 100644 --- a/tasks/proxmox.yml +++ b/tasks/proxmox.yml @@ -33,6 +33,12 @@ ansible.builtin.shell: | /usr/local/bin/pve-mod-gui-sensors.sh uninstall + - name: Wait for Proxmox Web GUI to be up + wait_for: + port: 8006 + delay: 5 + timeout: 60 + - name: Run pve-mod-gui-sensors script with predefined answers expect: command: /usr/local/src/pve-mod-gui-sensors.sh install @@ -41,3 +47,10 @@ 'Display temperatures in Celsius \[C\] or Fahrenheit \[f\].*\(C/f\):.*': 'c' 'Enable UPS information\?.*\(y/N\):.*': 'n' 'Enable system information\?.*\(1/2/n\):.*': '2' + + - name: Wait for Proxmox Web GUI to be up + wait_for: + port: 8006 + delay: 5 + timeout: 60 + \ No newline at end of file