From 6cdfa568801b00684e519363dfd93215e9295334 Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Tue, 6 Oct 2026 21:39:03 +0400 Subject: [PATCH] feat(pb,role): adds alpine as option for LXC --- playbooks/deploy_and_set_up_lxc_on_proxmox.yaml | 3 +++ roles/deploy_lxc_on_proxmox/tasks/main.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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