| Parameter | Choices/Defaults | Comments | 
                
                                                            | contact 
                    dictionary
                                                                 added in 2.8 |  | Dictionary which configures administrator contact name and description for the Distributed Switch. Valid attributes are: - name(str): Administrator name. - description(str): Description or other details. | 
                            
                                                            | datacenter_name 
                    string
                                                                 |  | The name of the datacenter that will contain the Distributed Switch. This parameter is optional, if folderis provided. Mutually exclusive with folderparameter. aliases: datacenter
 | 
                            
                                                            | description 
                    string
                                                                 added in 2.8 |  | Description of the Distributed Switch. | 
                            
                                                            | discovery_operation 
                    string
                                                                 | Choices:
                                                                                                                                                            bothadvertiselisten ← | Select the discovery operation. Required parameter for statebothpresentandabsent, before Ansible 2.6 version. Required only if stateis set topresent, for Ansible 2.6 and onwards. | 
                            
                                                            | discovery_proto 
                    string
                                                                 | Choices:
                                                                                                                                                            cdp ←lldpdisabled | Link discovery protocol between Cisco and Link Layer discovery. Required parameter for statebothpresentandabsent, before Ansible 2.6 version. Required only if stateis set topresent, for Ansible 2.6 and onwards. cdp: Use Cisco Discovery Protocol (CDP).
 lldp: Use Link Layer Discovery Protocol (LLDP).
 disabled: Do not use a discovery protocol.
 aliases: discovery_protocol
 | 
                            
                                                            | folder 
                    string
                                                                 added in 2.9 |  | Destination folder, absolute path to place dvswitch in. The folder should include the datacenter. This parameter is case sensitive. This parameter is optional, if datacenteris provided. Examples: folder: /datacenter1/network folder: datacenter1/network folder: /datacenter1/network/folder1 folder: datacenter1/network/folder1 folder: /folder1/datacenter1/network folder: folder1/datacenter1/network folder: /folder1/datacenter1/network/folder2 | 
                            
                                                            | health_check 
                    dictionary
                                                                 added in 2.8 | Default: 
 {"teaming_failover": false, "teaming_failover_interval": 0, "vlan_mtu": false, "vlan_mtu_interval": 0} | Dictionary which configures Health Check for the Distributed Switch. Valid attributes are: - vlan_mtu(bool): VLAN and MTU health check. (default: False) - teaming_failover(bool): Teaming and failover health check. (default: False) - vlan_mtu_interval(int): VLAN and MTU health check interval (minutes). (default: 0) - The default for vlan_mtu_intervalis 1 in the vSphere Client if the VLAN and MTU health check is enabled. - teaming_failover_interval(int): Teaming and failover health check interval (minutes). (default: 0) - The default for teaming_failover_intervalis 1 in the vSphere Client if the Teaming and failover health check is enabled. | 
                            
                                                            | 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. | 
                            
                                                            | mtu 
                    integer
                                                                 | Default: 
 1500 | The switch maximum transmission unit. Required parameter for statebothpresentandabsent, before Ansible 2.6 version. Required only if stateis set topresent, for Ansible 2.6 and onwards. Accepts value between 1280 to 9000 (both inclusive). | 
                            
                                                            | multicast_filtering_mode 
                    string
                                                                 added in 2.8 | Choices:
                                                                                                                                                            basic ←snooping | The multicast filtering mode. basicmode: multicast traffic for virtual machines is forwarded according to the destination MAC address of the multicast group.
 snoopingmode: the Distributed Switch provides IGMP and MLD snooping according to RFC 4541.
 | 
                            
                                                            | 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. | 
                            
                                                            | state 
                    string
                                                                 | Choices:
                                                                                                                                                            present ←absent | If set to presentand the Distributed Switch doesn't exists then the Distributed Switch will be created. If set to absentand the Distributed Switch exists then the Distributed Switch will be deleted. | 
                            
                                                            | switch_name 
                    string
                                             / required                     |  | The name of the distribute vSwitch to create or remove. aliases: switch, dvswitch
 | 
                            
                                                            | switch_version 
                    string
                                                                 added in 2.5 | Choices:
                                                                                                                                                            5.0.05.1.05.5.06.0.06.5.06.6.0 | The version of the Distributed Switch to create. Can be 6.0.0, 5.5.0, 5.1.0, 5.0.0 with a vCenter running vSphere 6.0 and 6.5. Can be 6.6.0, 6.5.0, 6.0.0 with a vCenter running vSphere 6.7. The version must match the version of the ESXi hosts you want to connect. The version of the vCenter server is used if not specified. Required only if stateis set topresent. aliases: version
 | 
                            
                                                            | uplink_prefix 
                    string
                                                                 added in 2.8 | Default: 
 "Uplink " | The prefix used for the naming of the uplinks. Only valid if the Distributed Switch will be created. Not used if the Distributed Switch is already present. Uplinks are created as Uplink 1, Uplink 2, etc. pp. by default. | 
                            
                                                            | uplink_quantity 
                    integer
                                                                 |  | Quantity of uplink per ESXi host added to the Distributed Switch. The uplink quantity can be increased or decreased, but a decrease will only be successfull if the uplink isn't used by a portgroup. Required parameter for statebothpresentandabsent, before Ansible 2.6 version. Required only if stateis set topresent, for Ansible 2.6 and onwards. | 
                            
                                                            | 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. |