chore 📦: Update setupacdc.yml for new pct command usage

Updated the `pct` command to create a new LXC container, replacing the previous manual process. This change simplifies the setup and reduces potential errors.
This commit is contained in:
2025-11-02 08:47:57 +01:00
parent e5fb255e76
commit 6d6f6691ba

View File

@@ -31,28 +31,7 @@
- ansible_managed
- test
tasks:
# - name: Ensure container does not exist
- name: Create LXC container using pct command
ansible.builtin.command:
cmd: >
pct create 201
{{ container_template }}
--hostname {{ container_hostname }}test
--storage {{ container_storage }}
--memory {{ container_memory }}
--cores 1
--net0 "name=eth0,bridge=vmbr0,ip=dhcp"
--unprivileged 1
--features {{ container_features }}
--ssh-public-keys /root/.ssh/id_rsa.pub
args:
creates: "/etc/pve/lxc/201.conf"
- name: Create LXC container using pct command on shell
ansible.builtin.shell: |