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