

name : Create a virtual machine on given ESXi hostname community.vmware. Īll modules requires API write access and hence is not supported on a free ESXi license. number of CPUs), the VM must be powered off unless the hot-add support is enabled and the state=present must be used to apply the changes.įor additional information please visit Ansible VMware community wiki. In order to change the VM’s parameters (e.g. Uses SysPrep for Windows VM (depends on ‘guest_id’ parameter match ‘win’) with PyVmomi. Use SCSI disks instead of IDE when you want to expand online disks by specifying a SCSI controller. Module may require additional privileges as well, which may be required for gathering facts - e.g. Resource > Assign Virtual Machine to Resource Pool Virtual Machine > Configuration > Add or Remove Device

Virtual Machine > Configuration > Add New Disk Please make sure that the user used for _guest has the correct level of privileges.įor example, following is the list of minimum privileges required by users to create virtual machines. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Collections in the Openvswitch Namespace.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace.Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace.Collections in the Containers Namespace.

