From d7726852eaf2f7fd60a4f5fe33e7d2f0e142f143 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 16 Dec 2025 20:56:19 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Replace=20PVE-?= =?UTF-8?q?mods=20repository=20cloning=20with=20direct=20script=20download?= =?UTF-8?q?=20and=20execution.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the project to eliminate the need for cloning a repository by instead downloading and executing a script directly. This simplifies the setup process and reduces dependency on external repositories. --- tasks/proxmox.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/tasks/proxmox.yml b/tasks/proxmox.yml index 2d94e5e..d268727 100644 --- a/tasks/proxmox.yml +++ b/tasks/proxmox.yml @@ -16,22 +16,14 @@ update_cache: yes cache_valid_time: 3600 - - name: Clone PVE-mods repository - ansible.builtin.git: - repo: "https://github.com/Meliox/PVE-mods.git" - dest: "/opt/PVE-mods" - version: "main" - update: yes - - - name: Install pve-mod-gui-sensors.sh - ansible.builtin.copy: - src: "/opt/PVE-mods/pve-mod-gui-sensors.sh" - dest: "/usr/local/bin/pve-mod-gui-sensors.sh" - mode: "0755" - remote_src: yes + - name: Download the PVE GUI sensors script + ansible.builtin.get_url: + url: https://raw.githubusercontent.com/Meliox/PVE-mods/refs/heads/main/pve-mod-gui-sensors.sh + dest: /tmp/pve-mod-gui-sensors.sh + mode: '0755' # Make it executable - name: Run uninstall script - ansible.builtin.command: bash /usr/local/bin/pve-mod-gui-sensors.sh uninstall + ansible.builtin.command: bash /tmp/pve-mod-gui-sensors.sh uninstall ignore_errors: true when: pve_mod_gui_sensors_installed | default(false) @@ -47,7 +39,7 @@ - name: Run pve-mod-gui-sensors script with predefined answers expect: - command: bash /usr/local/src/pve-mod-gui-sensors.sh install + command: bash /tmp/pve-mod-gui-sensors.sh install responses: 'Display temperatures for all cores \[C\] or average per CPU \[a\].*\(C/a\):.*': 'a' 'Display temperatures in Celsius \[C\] or Fahrenheit \[f\].*\(C/f\):.*': 'c'