| Parameter | Choices/Defaults | Comments | 
                
                                                            | cluster_name 
                    string
                                             / required                     |  | The name of the cluster to be managed. | 
                            
                                                            | datacenter 
                    string
                                             / required                     |  | The name of the datacenter. aliases: datacenter_name
 | 
                            
                                                            | enable_ha 
                    boolean
                                                                 |  | Whether to enable HA. | 
                            
                                                            | failover_host_admission_control 
                    dictionary
                                                                 |  | Configure dedicated failover hosts. slot_based_admission_control,reservation_based_admission_controlandfailover_host_admission_controlare mutually exclusive.
 | 
                                                        
                                                |  | failover_hosts 
                    list
                                             / required                     |  | List of dedicated failover hosts. | 
                                            
                                                            | ha_host_monitoring 
                    string
                                                                 | Choices:
                                                                                                                                                            enabled ←disabled | Whether HA restarts virtual machines after a host fails. If set to enabled, HA restarts virtual machines after a host fails. If set to disabled, HA does not restart virtual machines after a host fails. If enable_hais set tono, then this value is ignored. | 
                            
                                                            | ha_restart_priority 
                    string
                                                                 | Choices:
                                                                                                                                                            disabledhighlowmedium ← | Priority HA gives to a virtual machine if sufficient capacity is not available to power on all failed virtual machines. Valid only if ha_vm_monitoring is set to either vmAndAppMonitoringorvmMonitoringOnly. If set to disabled, then HA is disabled for this virtual machine. If set to high, then virtual machine with this priority have a higher chance of powering on after a failure, when there is insufficient capacity on hosts to meet all virtual machine needs. If set to medium, then virtual machine with this priority have an intermediate chance of powering on after a failure, when there is insufficient capacity on hosts to meet all virtual machine needs. If set to low, then virtual machine with this priority have a lower chance of powering on after a failure, when there is insufficient capacity on hosts to meet all virtual machine needs. | 
                            
                                                            | ha_vm_failure_interval 
                    integer
                                                                 | Default: 
 30 | The number of seconds after which virtual machine is declared as failed if no heartbeat has been received. This setting is only valid if ha_vm_monitoringis set to, eithervmAndAppMonitoringorvmMonitoringOnly. Unit is seconds. | 
                            
                                                            | ha_vm_max_failure_window 
                    integer
                                                                 | Default: 
 -1 | The number of seconds for the window during which up to ha_vm_max_failuresresets can occur before automated responses stop. Valid only when ha_vm_monitoring is set to either vmAndAppMonitoringorvmMonitoringOnly. Unit is seconds. Default specifies no failure window. | 
                            
                                                            | ha_vm_max_failures 
                    integer
                                                                 | Default: 
 3 | Maximum number of failures and automated resets allowed during the time that ha_vm_max_failure_windowspecifies. Valid only when ha_vm_monitoring is set to either vmAndAppMonitoringorvmMonitoringOnly. | 
                            
                                                            | ha_vm_min_up_time 
                    integer
                                                                 | Default: 
 120 | The number of seconds for the virtual machine's heartbeats to stabilize after the virtual machine has been powered on. Valid only when ha_vm_monitoring is set to either vmAndAppMonitoringorvmMonitoringOnly. Unit is seconds. | 
                            
                                                            | ha_vm_monitoring 
                    string
                                                                 | Choices:
                                                                                                                                                            vmAndAppMonitoringvmMonitoringOnlyvmMonitoringDisabled ← | State of virtual machine health monitoring service. If set to vmAndAppMonitoring, HA response to both virtual machine and application heartbeat failure. If set to vmMonitoringDisabled, virtual machine health monitoring is disabled. If set to vmMonitoringOnly, HA response to virtual machine heartbeat failure. If enable_hais set tono, then this value is ignored. | 
                            
                                                            | host_isolation_response 
                    string
                                                                 | Choices:
                                                                                                                                                            none ←powerOffshutdown | Indicates whether or VMs should be powered off if a host determines that it is isolated from the rest of the compute resource. If set to none, do not power off VMs in the event of a host network isolation. If set to powerOff, power off VMs in the event of a host network isolation. If set to shutdown, shut down VMs guest operating system in the event of a host network isolation. | 
                            
                                                            | hostname 
                    string
                                                                 |  | 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_HOSTwill be used instead. Environment variable support added in Ansible 2.6. | 
                            
                                                            | password 
                    string
                                                                 |  | The password of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable VMWARE_PASSWORDwill be used instead. Environment variable support added in Ansible 2.6. aliases: pass, pwd
 | 
                            
                                                            | port 
                    integer
                                                                 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_PORTwill be used instead. Environment variable support added in Ansible 2.6. | 
                            
                                                            | proxy_host 
                    string
                                                                 added in 2.9 |  | Address of a proxy that will receive all HTTPS requests and relay them. The format is a hostname or a IP. If the value is not specified in the task, the value of environment variable VMWARE_PROXY_HOSTwill be used instead. This feature depends on a version of pyvmomi greater than v6.7.1.2018.12 | 
                            
                                                            | proxy_port 
                    integer
                                                                 added in 2.9 |  | Port of the HTTP proxy that will receive all HTTPS requests and relay them. If the value is not specified in the task, the value of environment variable VMWARE_PROXY_PORTwill be used instead. | 
                            
                                                            | reservation_based_admission_control 
                    dictionary
                                                                 |  | Configure reservation based admission control policy. slot_based_admission_control,reservation_based_admission_controlandfailover_host_admission_controlare mutually exclusive.
 | 
                                                        
                                                |  | auto_compute_percentages 
                    boolean
                                                                 |  | By default, failover_levelis used to calculatecpu_failover_resources_percentandmemory_failover_resources_percent. If a user wants to override the percentage values, he has to set this field to false. | 
                            
                                                |  | cpu_failover_resources_percent 
                    integer
                                                                 | Default: 
 50 | Percentage of CPU resources in the cluster to reserve for failover. Ignored if auto_compute_percentagesis not set to false. | 
                            
                                                |  | failover_level 
                    integer
                                             / required                     |  | Number of host failures that should be tolerated. | 
                            
                                                |  | memory_failover_resources_percent 
                    integer
                                                                 | Default: 
 50 | Percentage of memory resources in the cluster to reserve for failover. Ignored if auto_compute_percentagesis not set to false. | 
                                            
                                                            | slot_based_admission_control 
                    dictionary
                                                                 |  | Configure slot based admission control policy. slot_based_admission_control,reservation_based_admission_controlandfailover_host_admission_controlare mutually exclusive.
 | 
                                                        
                                                |  | failover_level 
                    integer
                                             / required                     |  | Number of host failures that should be tolerated. | 
                                            
                                                            | username 
                    string
                                                                 |  | The username of the vSphere vCenter or ESXi server. If the value is not specified in the task, the value of environment variable VMWARE_USERwill be used instead. Environment variable support added in Ansible 2.6. aliases: admin, user
 | 
                            
                                                            | validate_certs 
                    boolean
                                                                 |  | Allows connection when SSL certificates are not valid. Set to falsewhen certificates are not trusted. If the value is not specified in the task, the value of environment variable VMWARE_VALIDATE_CERTSwill be used instead. Environment variable support added in Ansible 2.6. If set to yes, please make sure Python >= 2.7.9 is installed on the given machine. |