chore 📦: Update setupacdc.yml with new variables and task
Updated the setupacdc.yml file to include a new variable for node IP address and added a debug task to print the node's IP address. This change is part of the build process update.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
vars:
|
vars:
|
||||||
addc_hostname: "DC1"
|
addc_hostname: "DC1"
|
||||||
mac_address: "8E:90:31:DE:31:36"
|
mac_address: "8E:90:31:DE:31:36"
|
||||||
|
node_ip: "{{ hostvars['node0']['ansible_host'] }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller
|
- name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller
|
||||||
@@ -14,6 +15,10 @@
|
|||||||
state: present
|
state: present
|
||||||
become: no
|
become: no
|
||||||
|
|
||||||
|
- name: Print node IP
|
||||||
|
debug:
|
||||||
|
msg: "The IP address of node0 is {{ node_ip }}"
|
||||||
|
|
||||||
- name: Create lxc container
|
- name: Create lxc container
|
||||||
community.proxmox.proxmox:
|
community.proxmox.proxmox:
|
||||||
vmid: 200
|
vmid: 200
|
||||||
|
|||||||
Reference in New Issue
Block a user