style 💎: Update LXC container setup parameters

Updated the pct command to use default settings for Debian OS, removing unnecessary options and improving readability. This change ensures consistency in setup configurations.
This commit is contained in:
2025-11-01 23:20:28 +01:00
parent 7bbf3bbb1c
commit 333c991359

View File

@@ -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