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:
@@ -115,6 +115,11 @@
|
|||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Ensure sudo is installed
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Create working directory
|
- name: Create working directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ workdir }}"
|
path: "{{ workdir }}"
|
||||||
@@ -217,6 +222,8 @@
|
|||||||
src: "{{ workdir }}/{{ template_name }}.qcow2"
|
src: "{{ workdir }}/{{ template_name }}.qcow2"
|
||||||
dest: "/var/lib/vz/template/qcow2/"
|
dest: "/var/lib/vz/template/qcow2/"
|
||||||
mode: push
|
mode: push
|
||||||
|
rsync_opts:
|
||||||
|
- "--rsync-path='rsync'"
|
||||||
# rsync_opts:
|
# rsync_opts:
|
||||||
# - "--rsync-path='sudo rsync'"
|
# - "--rsync-path='sudo rsync'"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user