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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user