From f3607d2e5aaf53da15047a660ce06fdf85d8b62c Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 1 Nov 2025 10:39:04 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20setupacdc.yml?= =?UTF-8?q?=20with=20new=20node=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the hosts and tasks to accommodate a new Proxmox node, adding a hostname and MAC address for DC1. This change enables the creation of an LXC container on the new node. --- tasks/setupacdc.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 7e8f739..b2037c9 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -1,6 +1,10 @@ - hosts: localhost gather_facts: yes + vars: + addc_hostname: "DC1" + mac_address: "8E:90:31:DE:31:36" + tasks: - name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller ansible.builtin.pip: @@ -10,17 +14,10 @@ state: present become: no -- hosts: node0 - - vars: - addc_hostname: "DC1" - mac_address: "8E:90:31:DE:31:36" - - tasks: - name: Create lxc container community.proxmox.proxmox: vmid: 200 - node: node0 + node: "{{ hostvars['node0']['ansible_host'] }}" api_user: root@pam api_password: "{{ proxmox_password }}" api_host: node0