refactor ♻️: Remove unnecessary conditional check and registration in Proxmox task

Refactored the Proxmox task code by removing redundant conditional checks and registration steps, simplifying the logic and improving performance.
This commit is contained in:
2025-12-16 21:02:08 +01:00
parent 651bf323df
commit 3c4d7d73b5

View File

@@ -25,7 +25,6 @@
- name: Run uninstall script
ansible.builtin.command: bash /tmp/pve-mod-gui-sensors.sh uninstall
ignore_errors: true
when: pve_mod_gui_sensors_installed | default(false)
- name: Wait for Proxmox Web GUI to be up
wait_for:
@@ -45,7 +44,6 @@
'Display temperatures in Celsius \[C\] or Fahrenheit \[f\].*\(C/f\):.*': 'c'
'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