From c89e9163514d8275fe3d30678b640cac960e67fb Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 19:52:35 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20Proxmox=20Debian=20te?= =?UTF-8?q?mplate=20with=20sudo=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a new task to the create_proxmox_debian_template.yml file to ensure sudo is installed during the template creation process. This change allows for more secure access to the system. --- tasks/create_proxmox_debian_template.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index 987314f..e1c8db3 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -115,6 +115,11 @@ state: present update_cache: true + - name: Ensure sudo is installed + ansible.builtin.apt: + name: sudo + state: present + - name: Create working directory ansible.builtin.file: path: "{{ workdir }}" @@ -217,6 +222,8 @@ src: "{{ workdir }}/{{ template_name }}.qcow2" dest: "/var/lib/vz/template/qcow2/" mode: push + rsync_opts: + - "--rsync-path='rsync'" # rsync_opts: # - "--rsync-path='sudo rsync'"