chore 📦: Update setupacdc.yml with new configuration options

Updated the setupacdc.yml file to include additional configuration options for LXC containers, including password and network settings.
This commit is contained in:
2025-11-02 08:36:08 +01:00
parent 835b84b71a
commit 82a2de1a98

View File

@@ -14,14 +14,19 @@
container_template: "/var/lib/vz/template/cache/debian-13-standard_13.1-1_amd64.tar.zst" container_template: "/var/lib/vz/template/cache/debian-13-standard_13.1-1_amd64.tar.zst"
container_ostype: debian container_ostype: debian
container_hostname: "{{ addc_hostname }}" container_hostname: "{{ addc_hostname }}"
container_password: 123456
container_storage: local-lvm container_storage: local-lvm
container_rootfs_size: 8G container_rootfs_size: 8G
container_memory: 1024 container_memory: 1024
container_swap: 256 container_swap: 256
container_cores: 2 container_cores: 2
container_net: "name=eth0,bridge=vmbr0,ip=dhcp" container_net: name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }},hwaddr={{ mac_address }}
container_features: "keyctl=1,nesting=1,mount=cifs" container_features: "keyctl=1,nesting=1,mount=cifs"
container_description: default lxc container_description: default lxc
container_onboot: 1
container_protection: 0
container_unprivileged: 1
container_tags: "ansible_managed,test"
tasks: tasks:
@@ -32,11 +37,11 @@
cmd: > cmd: >
pct create 201 pct create 201
{{ container_template }} {{ container_template }}
--hostname {{ container_hostname }}2 --hostname {{ container_hostname }}test
--storage {{ container_storage }} --storage {{ container_storage }}
--memory {{ container_memory }} --memory {{ container_memory }}
--cores {{ container_cores }} --cores 1
--net0 {{ container_net }} --net0 "name=eth0,bridge=vmbr0,ip=dhcp"
--unprivileged 1 --unprivileged 1
--features {{ container_features }} --features {{ container_features }}
--ssh-public-keys /root/.ssh/id_rsa.pub --ssh-public-keys /root/.ssh/id_rsa.pub
@@ -51,17 +56,17 @@
pct create {{ container_id }} {{ container_template }} \ pct create {{ container_id }} {{ container_template }} \
-ostype {{ container_ostype }} \ -ostype {{ container_ostype }} \
-hostname {{ container_hostname }} \ -hostname {{ container_hostname }} \
-password 123456 \ -password {{ container_password }} \
-cores {{ container_cores }} \ -cores {{ container_cores }} \
-memory {{ container_memory }} \ -memory {{ container_memory }} \
-swap {{ container_swap }} \ -swap {{ container_swap }} \
-net0 name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }},hwaddr={{ mac_address }} \ -net0 {{container_net}} \
-storage {{ container_storage }} \ -storage {{ container_storage }} \
-description "{{ container_description }}" \ -description "{{ container_description }}" \
-onboot 1 \ -onboot {{ container_onboot }} \
-protection 0 \ -protection {{ container_protection }} \
-unprivileged 1 \ -unprivileged {{ container_unprivileged }} \
-tags "ansible_managed,test" \ -tags {{ container_tags }} \
-features {{ container_features }} -features {{ container_features }}
args: args:
creates: "/etc/pve/lxc/{{ container_id }}.conf" creates: "/etc/pve/lxc/{{ container_id }}.conf"