We are going to keep leverage programmability and automation to assign the rest of the portgroups to POD3 VMs. Using Python and VMware vSphere API Python Bindings we have created a program for you to use
If you closed your ansible host windows:> Click the terminal icon on the left to open the lab ansible host cl-srv1 Username: pod3u1 Password: cisco.123
Run the playbook bellow
cd ~/cl-vm
ansible-playbook -i inventories/cl-vm/cl-vm.yml cl-vm.yml -t eth1
PLAY [pod32] ******************************************************* 1. TASK [cl-vm/set_portgroup : get VM info] ************************ 2. TASK [cl-vm/set_portgroup : Set port group for Network Adapter 2] PLAY RECAP ********************************************************* POD32-APP-SRV : ok=2 changed=0 unreachable=0 POD32-DB-SRV : ok=2 changed=0 unreachable=0 POD32-WEB-SRV-01 : ok=2 changed=0 unreachable=0 POD32-WEB-SRV-02 : ok=2 changed=0 unreachable=0