From 333c991359c597decb816aa4aaa8f1f7b429380f Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 1 Nov 2025 23:20:28 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20LXC=20containe?= =?UTF-8?q?r=20setup=20parameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the pct command to use default settings for Debian OS, removing unnecessary options and improving readability. This change ensures consistency in setup configurations. --- tasks/setupacdc.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 990885d..d0636be 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -11,16 +11,16 @@ - name: Create LXC container using pct command shell: | pct create 200 '/var/lib/vz/template/cache/debian-13-standard_13.1-1_amd64.tar.zst' \ - --ostype debian \ - --hostname {{ addc_hostname }} \ - --password 123456 \ - --cores 2 \ - --memory 2048 \ - --swap 256 \ - --net0 name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }},hwaddr={{ mac_address }} \ - --storage local-lvm \ - --unprivileged 0 \ - --features keyctl=1,nesting=1,mount=cifs + -ostype debian \ + -hostname {{ addc_hostname }} \ + -password 123456 \ + -cores 2 \ + -memory 2048 \ + -swap 256 \ + -net0 name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }},hwaddr={{ mac_address }} \ + -storage local-lvm \ + -unprivileged 0 \ + -features keyctl=1,nesting=1,mount=cifs become: yes become_user: root