chore 📦: Update setupacdc.yml with new node configuration

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.
This commit is contained in:
2025-11-01 10:39:04 +01:00
parent b412b4e53b
commit f3607d2e5a

View File

@@ -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