Chapter 5. Roles
A role is a group of permissions for specific Red Hat Ansible Automation Platform resources. These permissions govern actions such as viewing, changing, using, executing, or deleting resources such as projects, inventories, credentials, and job templates. When you assign a role to a team or user you are granting them access to manage defined resources within the platform.
Roles define permissions for a specific resource, centralizing all access to that resource through the role itself. This design makes roles reusable units that enable administrators to share defined behaviors among many resources or with different users.
As an administrator, you have the option of using default predefined roles, or you can create roles based on your organization’s needs.
5.1. Displaying roles Copy linkLink copied to clipboard!
You can display the roles assigned to each component resource from the menu.
Roles are labeled with their associated Ansible Automation Platform component and function. These components align with Ansible Automation Platform services and the side navigation structure in the user interface. Component labels can be understood as follows:
- Automation Execution refers to automation controller
- Automation Decisions refers to Event-Driven Ansible
- Automation Content refers to automation hub
Roles created at the level of the organization can be associated with multiple components because they group together permissions from automation controller (Automation Execution) and Event-Driven Ansible (Automation Decisions). Only organization roles can span multiple components.
A similar role entity for Automation Content is a "system" role, which gives access to all of the specified resource types in Automation Content.
Procedure
-
From the navigation panel, select
. - From the table header, you can sort the list of roles by using the arrows for Name, Description, Component, Resource Type, and Role Creation, or by making sort selections in the Sort list.
- You can filter the list of roles by selecting Name, Editable, or Component from the filter list and clicking the arrow.
5.2. Creating a role Copy linkLink copied to clipboard!
Ansible Automation Platform services provide a set of predefined roles with permissions enough for standard automation tasks. It is also possible to configure custom roles that define access permissions to a resource.
If the default predefined roles for a resource type do not give the necessary permissions, you can create custom roles for an organization. Creating a custom role reduces complexity by consolidating all required permissions into a single assignment per resource or resource type, eliminating the need to assign multiple roles to a user or team.
Procedure
-
From the navigation panel, select
. - Click .
- Provide a Name and a short Description for the role. The name and description should be unique and specific to the role’s intended use and permissions to give context when assigning the role.
- Select a Resource Type. Ensure that you are selecting the required resource in the correct component context, because resources such as projects and credentials can be associated with both Automation Execution and Automation Decisions.
- Select the Permissions you want assigned to this role from the drop-down menu.
- Click to create your new role.
5.3. Editing a role Copy linkLink copied to clipboard!
Default roles are predefined in the platform and cannot be changed; however, you can modify custom roles from the Roles list view. The Role Creation column in the Roles list view indicates whether a role is a default role that cannot be changed, or a custom role that can be modified.
Procedure
-
From the navigation panel, select
. -
Click the Edit role icon
next to the role you want and modify the role settings as needed.
- Click to save your changes.
5.4. Deleting a role Copy linkLink copied to clipboard!
You cannot delete default roles; however, you can delete custom roles from the Roles list view.
Procedure
-
From the navigation panel, select
. - Click the icon ⋮ next to the role you want and select Delete role.
- To delete roles in bulk, select the roles you want to delete from the Roles list view, click the icon ⋮, and select Delete roles.