The vmware_local_role_manager module

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"

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.