feat : Add Proxmox Debian template with sudo installation

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.
This commit is contained in:
2025-11-08 19:52:35 +01:00
parent 3b512c558b
commit c89e916351

View File

@@ -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'"