Parameter |
Choices/Defaults |
Comments |
cluster
required |
|
Name of the cluster to add the host.
|
cpu_expandable_reservations
bool |
|
In a resource pool with an expandable reservation, the reservation on a resource pool can grow beyond the specified value.
|
cpu_limit
|
Default:
-1
|
The utilization of a virtual machine/resource pool will not exceed this limit, even if there are available resources.
The default value -1 indicates no limit.
|
cpu_reservation
|
Default:
0
|
Amount of resource that is guaranteed available to the virtual machine or resource pool.
|
cpu_shares
|
Choices:
- high
- custom
- low
normal ←
|
Memory shares are used in case of resource contention.
|
datacenter
required |
|
Name of the datacenter to add the host.
|
hostname
str |
|
The hostname or IP address of the vSphere vCenter or ESXi server.
If the value is not specified in the task, the value of environment variable VMWARE_HOST will be used instead.
Environment variable support added in version 2.6.
|
mem_expandable_reservations
bool |
|
In a resource pool with an expandable reservation, the reservation on a resource pool can grow beyond the specified value.
|
mem_limit
|
Default:
-1
|
The utilization of a virtual machine/resource pool will not exceed this limit, even if there are available resources.
The default value -1 indicates no limit.
|
mem_reservation
|
Default:
0
|
Amount of resource that is guaranteed available to the virtual machine or resource pool.
|
mem_shares
|
Choices:
- high
- custom
- low
normal ←
|
Memory shares are used in case of resource contention.
|
password
str |
|
The password of the vSphere vCenter or ESXi server.
If the value is not specified in the task, the value of environment variable VMWARE_PASSWORD will be used instead.
Environment variable support added in version 2.6.
aliases: pass, pwd
|
port
int
(added in 2.5) |
Default:
443
|
The port number of the vSphere vCenter or ESXi server.
If the value is not specified in the task, the value of environment variable VMWARE_PORT will be used instead.
Environment variable support added in version 2.6.
|
resource_pool
required |
|
Resource pool name to manage.
|
state
|
Choices:
present ←
- absent
|
Add or remove the resource pool
|
username
str |
|
The username of the vSphere vCenter or ESXi server.
If the value is not specified in the task, the value of environment variable VMWARE_USER will be used instead.
Environment variable support added in version 2.6.
aliases: admin, user
|
validate_certs
bool |
|
Allows connection when SSL certificates are not valid. Set to false when certificates are not trusted.
If the value is not specified in the task, the value of environment variable VMWARE_VALIDATE_CERTS will be used instead.
Environment variable support added in version 2.6.
If set to yes , please make sure Python >= 2.7.9 is installed on the given machine.
|