feat ✨: Add wait-for task to ensure Proxmox Web GUI is up before running scripts.
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.
This commit is contained in:
@@ -33,6 +33,12 @@
|
|||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
/usr/local/bin/pve-mod-gui-sensors.sh uninstall
|
/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
|
- name: Run pve-mod-gui-sensors script with predefined answers
|
||||||
expect:
|
expect:
|
||||||
command: /usr/local/src/pve-mod-gui-sensors.sh install
|
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'
|
'Display temperatures in Celsius \[C\] or Fahrenheit \[f\].*\(C/f\):.*': 'c'
|
||||||
'Enable UPS information\?.*\(y/N\):.*': 'n'
|
'Enable UPS information\?.*\(y/N\):.*': 'n'
|
||||||
'Enable system information\?.*\(1/2/n\):.*': '2'
|
'Enable system information\?.*\(1/2/n\):.*': '2'
|
||||||
|
|
||||||
|
- name: Wait for Proxmox Web GUI to be up
|
||||||
|
wait_for:
|
||||||
|
port: 8006
|
||||||
|
delay: 5
|
||||||
|
timeout: 60
|
||||||
|
|
||||||
Reference in New Issue
Block a user