chore 📦: Update setupacdc.yml to use node IP instead of host variable

Updated the `node` parameter in the Proxmox API connection to use the `node_ip` variable, which is now set to the IP address of the node. This change ensures consistency and accuracy when connecting to the Proxmox API. The update also reflects the recent changes made to the `hostvars` dictionary.
This commit is contained in:
2025-11-01 10:43:06 +01:00
parent bbc8c672c2
commit 5ef5cf553c

View File

@@ -18,11 +18,11 @@
- name: Print node IP
debug:
msg: "The IP address of node0 is {{ node_ip }}"
- name: Create lxc container
community.proxmox.proxmox:
vmid: 200
node: "{{ hostvars['node0']['ansible_host'] }}"
node: "{{ node_ip }}"
api_user: root@pam
api_password: "{{ proxmox_password }}"
api_host: node0