SUMMARY
When using this module to set rights on objects within a vCenter you cannot choose what datacenter you are targeting. If you have multiple objects with the same name (but under different datacenters) it would be nice if you could tell the module where to look.
ISSUE TYPE
- Feature - Add support for multiple datacenters under the same vCenter.
COMPONENT NAME
community.vmware.vmware_object_role_permission
ADDITIONAL INFORMATION
Please add support for another (optional) string parameter containing datacenter.
Something like this:
- name: Assign user to VM folder
community.vmware.vmware_object_role_permission:
hostname: '{{ esxi_hostname }}'
username: '{{ esxi_username }}'
password: '{{ esxi_password }}'
role: Admin
principal: user_bob
object_name: services
datacenter: datacenter1
state: present
delegate_to: localhost