In this reposity you can find many ansible roles and playbook examples. Most of them are from my homelab deployment.
You have to install Ansible 2.14 to use all functions of the playbooks
You can run your deployment with the following parameters:
- ansible-playbook YOURPLAYBOOK.YML -i INVENTORYFILE
for example: ansible-playbook 01-create-vsphere-vms.yml -i /inventory/homelab
for running in debugmode you can add the parameter -vvv
You can use this playbook to create multiple VMs in your vSphere / vcenter environment. Add the VMs in the defined section in your inventory file. In your group_vars file you have to define your settings for the connections, passwords and so on.