Using this module, you can configure roles on your cluster; these roles can be used to assign privileges. In the following example, we are assigning a few privileges to the vmware_qa role:
- name: Add a local role vmware_local_role_manager: hostname: "{{ vsphere_host }}" username: "{{ vsphere_username }}" password: "{{ vsphere_password }}" validate_certs: "no" local_role_name: "vmware_qa" local_privilege_ids: [ "Folder.Create", "Folder.Delete"] state: "present"