From 3c4d7d73b51241fa6afea44509a1e7bcb6c0356e Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 16 Dec 2025 21:02:08 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Remove=20unnec?= =?UTF-8?q?essary=20conditional=20check=20and=20registration=20in=20Proxmo?= =?UTF-8?q?x=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the Proxmox task code by removing redundant conditional checks and registration steps, simplifying the logic and improving performance. --- tasks/proxmox.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tasks/proxmox.yml b/tasks/proxmox.yml index 6572d6b..351edf6 100644 --- a/tasks/proxmox.yml +++ b/tasks/proxmox.yml @@ -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