Create VM
Description
This automation script provisions a new virtual machine in a VMware environment. It supports provisioning from templates for various operating systems, including Linux and Windows. The script handles customization, network configuration, and post-deployment tasks such as adding tags and upgrading VMware tools.
For Windows it also joins the VM to the domain and sets temporary admin credentials.
If the VM already exsists, the playbook is skipped.
Credentials
- sys_ansible_vmware
- sys_ansible_ad
- Windows setup local admin (local account)
Input
| Variable | Description |
|---|---|
target |
The target VM to provision |
server_os |
The operating system of the server |
team |
The team responsible for the VM |
cpu |
Number of CPUs to allocate |
mem_gb |
Amount of memory in GB to allocate |
datastore |
Datastore to use for the VM |
vsphere_network |
Network to connect the VM to |
ip_adres |
IP address for the VM |
ip_mask |
Subnet mask for the VM |
ip_gateway |
Gateway for the VM |
disksizes |
Comma-separated list of additional disk sizes |
Output
None