This module allows you to create and remove distributed vSwitches:
- name: Create dvswitch vmware_dvswitch: hostname: "{{ vsphere_host }}" username: "{{ vsphere_username }}" password: "{{ vsphere_password }}" validate_certs: "no" datacenter: "my_datacenter" switch_name: "my_dvSwitch" switch_version: "6.0.0" mtu: "9000" uplink_quantity: "2" discovery_proto: "lldp" discovery_operation: "both" state: present delegate_to: "localhost"