From 6d6f6691baa43c4e5773e87650196da64edb48c2 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 2 Nov 2025 08:47:57 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20setupacdc.yml?= =?UTF-8?q?=20for=20new=20pct=20command=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the `pct` command to create a new LXC container, replacing the previous manual process. This change simplifies the setup and reduces potential errors. --- tasks/setupacdc.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index f869ec5..06749dd 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -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: |