From 0e55a6afe7125e29cbcad589ea59132a198ab145 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 21 Oct 2025 21:01:23 +0200 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactored=20t?= =?UTF-8?q?he=20Proxmox=20setup=20task=20to=20include=20additional=20confi?= =?UTF-8?q?guration=20options=20for=20the=20LXC=20container.=20Added=20a?= =?UTF-8?q?=20new=20parameter=20`mac=5Faddress`=20to=20specify=20the=20MAC?= =?UTF-8?q?=20address=20of=20the=20container.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the Proxmox setup task to include additional configuration options for the LXC container, such as setting a custom MAC address. --- tasks/setupacdc.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index c6abc51..39f40d4 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -1,8 +1,31 @@ - hosts: "node0" gather_facts: yes tasks: + + - name: Create lxc container community.proxmox.proxmox: + mac_address: "8E:90:31:DE:31:36" + vmid: 200 + node: node0 api_user: root@pam api_password: "{{ proxmox_password }}" api_host: node0 + password: 123456 + hostname: "{{ addc_hostname }}" + ostype: debian + ostemplate: 'local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst' + description: samba ad dc + cores: 2 + memory: 2048 + disk: 'local-lvm:10' + timezone: "{{ localization_timezone }}" + onboot: true + unprivileged: true + features: + - nesting=1 + - keyctl=1 + - mount=cifs + pubkey: 'ssh-ed25519 AAAAC3NzaC1...hBWA ansibleuser@ansiblehost' + netif: + net0: "name=eth0,hwaddr={{ mac_address }},gw={{ location_gateway }},ip={{ addc_ansible_host }}/24,bridge=vmbr0"