New in version 2.0.
The hostname or IP address of the vSphere vCenter.
(added in 2.2)
Network policy specifies layer 2 security settings for a portgroup such as promiscuous mode, where guest adapter listens to all the packets, MAC address changes and forged transmits. Settings are promiscuous_mode, forged_transmits, mac_changes
The password of the vSphere vCenter.
aliases: pass, pwd
Portgroup name to add
vSwitch to modify
The username of the vSphere vCenter.
aliases: user, admin
Allows connection when SSL certificates are not valid. Set to false when certificates are not trusted.
VLAN ID to assign to portgroup
# Example from Ansible playbook - name: Add Management Network VM Portgroup local_action: module: vmware_portgroup hostname: esxi_hostname username: esxi_username password: esxi_password switch_name: vswitch_name portgroup_name: portgroup_name vlan_id: vlan_id - name: Add Portgroup with Promiscuous Mode Enabled local_action: module: vmware_portgroup hostname: esxi_hostname username: esxi_username password: esxi_password switch_name: vswitch_name portgroup_name: portgroup_name network_policy: promiscuous_mode: True
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support