-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware_portgroup, "hosts" or "cluster" required when logging into ESXi #2032
Labels
documentation
Improvements or additions to documentation
Comments
As a workaround (until fixed) you can add - name: Add Management Network VM Portgroup
community.vmware.vmware_portgroup:
hostname: "{{ esxi_hostname }}"
username: "{{ esxi_username }}"
password: "{{ esxi_password }}"
esxi_hostname: foobar
switch: "{{ vswitch_name }}"
portgroup: "{{ portgroup_name }}"
vlan_id: "{{ vlan_id }}"
delegate_to: localhost Btw. |
Yep, this is documentation issues. Module community.vmware.vmware_portgroup need one of two required parameters - cluster_name or hosts. Even if you work with standalone esxi, you must specify this esxi in hosts.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using an example with the same params as the first vmware_portgroup examples page
And logging into ESXi directly
This returns
This behavior makes sense for vCenter, but not for ESXi, and does not follow the example in the docs.
The text was updated successfully, but these errors were encountered: