From 7788d256121a8b700d167db01d8cba21387738f5 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 16:59:29 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20storage=20sett?= =?UTF-8?q?ings=20in=20proxmox=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the `lxc_storage` variable from `hdd8t` to `local-lvm`, and added additional storage options (`--swap` and `--rootfs-size`) for more efficient resource allocation. --- tasks/create_proxmox_debian_template.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index 1fc36ce..29d5e08 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -10,12 +10,13 @@ vars: lxc_name: "debian-builder" lxc_id: 9900 - # lxc_storage: "local-lvm" - lxc_storage: "hdd8t" + lxc_storage: "local-lvm" + # lxc_storage: "hdd8t" lxc_template: "local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst" lxc_ostype: "debian" - lxc_cores: 2 - lxc_memory: 2048 + lxc_cores: 4 + lxc_memory: 4096 + lxc_swap: 0 lxc_net: "name=eth0,bridge=vmbr0,ip=dhcp" lxc_rootfs_size: "8G" lxc_password: "password" @@ -50,6 +51,8 @@ --ssh-public-keys '{{ ssh_keys_file }}' --cores {{ lxc_cores }} --memory {{ lxc_memory }} + --swap {{ lxc_swap }} + --rootfs-size {{ lxc_rootfs_size }} --ostype {{ lxc_ostype }} --net0 {{ lxc_net }} --storage {{ lxc_storage }}