diff --git a/playbooks/deploy_and_set_up_lxc_on_proxmox.yaml b/playbooks/deploy_and_set_up_lxc_on_proxmox.yaml index 37aade9..273f13b 100644 --- a/playbooks/deploy_and_set_up_lxc_on_proxmox.yaml +++ b/playbooks/deploy_and_set_up_lxc_on_proxmox.yaml @@ -23,6 +23,9 @@ - name: Include input and validation for LXC privilege ansible.builtin.include_tasks: ../tasks/lxc_privileged_validation.yaml + - name: Include input and validation for OS template + ansible.builtin.include_tasks: ../tasks/os_template_validation.yaml + - name: Include input and validation for human admin user creation ansible.builtin.include_tasks: ../tasks/human_admin_user_validation.yaml diff --git a/roles/deploy_lxc_on_proxmox/tasks/main.yaml b/roles/deploy_lxc_on_proxmox/tasks/main.yaml index 6b1b5ca..9d3c303 100644 --- a/roles/deploy_lxc_on_proxmox/tasks/main.yaml +++ b/roles/deploy_lxc_on_proxmox/tasks/main.yaml @@ -13,7 +13,7 @@ cmode: "shell" password: "{{ lxc_root_password }}" hostname: "{{ guest_hostname }}" - ostemplate: 'main:vztmpl/debian-13-golden-image.tar.gz' + ostemplate: "main:vztmpl/{{ guest_os_template }}-golden-image.tar.gz" unprivileged: "{{ not lxc_privileged | bool }}" memory: 2048 cores: 2