I am in the process of developing a playbook to create VMs in VMware vCenter Server wherein I need to be able to name the VMs with incremental number suffixes - VM(x) becomes VM1, VM2. Since the number of VMs would be fixed, I intend to specify the number in the playbook itself.
I’m assuming I need to specify the highlighted variable vmname (below) prior to the vsphere_guest module.
`
name: Create VMs on VMware vCenter Server
hosts: localhost
I am in the process of developing a playbook to create VMs in VMware
vCenter Server wherein I need to be able to name the VMs with incremental
number suffixes - VM(x) becomes VM1, VM2. Since the number of VMs would be
fixed, I intend to specify the number in the playbook itself.
I'm assuming I need to specify the highlighted variable vmname (below)
prior to the vsphere_guest module.