Search

Chapter 6. Roles

download PDF

Roles are units of organization in the Red Hat Ansible Automation Platform. When you assign a role to a team or user, you are granting access to use, read, or write credentials. Because of the file structure associated with a role, roles become redistributable units that enable you to share behavior among resources, or with other users. All access that is granted to use, read, or write credentials is handled through roles, and roles are defined for a resource.

6.1. Displaying roles

You can display the roles assigned for component resources from the Access Management menu.

Procedure

  1. From the navigation panel, select Access Management Roles.
  2. Select a tab for the component resource for which you want to create custom roles.

    Note

    If you have multiple Ansible Automation Platform components installed, you will see selections for the roles associated with each component in the Roles menu bar. For example, Automation Execution for automation controller roles, Automation Decisions for Event-Driven Ansible roles.

  3. From the table header, you can sort the list of roles by using the arrows for Name, Description, Created and Editable or by making sort selections in the Sort list.
  4. You can filter the list of roles by selecting Name or Editable from the filter list and clicking the arrow.

6.2. Creating a role

Ansible Automation Platform services provide a set of predefined roles with permissions sufficient for standard automation tasks. It is also possible to configure custom roles, and assign one or more permission filters to them. Permission filters define the actions allowed for a specific resource type.

Procedure

  1. From the navigation panel, select Access Management Roles.
  2. Select a tab for the component resource for which you want to create custom roles.

    Note

    If you have multiple Ansible Automation Platform components installed, you will see selections for the roles associated with each component in the Roles menu bar. For example, Automation Execution for automation controller roles, Automation Decisions for Event-Driven Ansible roles.

  3. Click Create role.
  4. Provide a Name and optionally include a Description for the role.
  5. Select a Content Type.
  6. Select the Permissions you want assigned to this role.
  7. Click Create role to create your new role.

6.3. Editing a role

Built in roles can not be changed, however, you can modify custom roles from the Roles list view. The Editable column in the Roles list view indicates whether a role is Built-in or Editable.

Procedure

  1. From the navigation panel, select Access Management Roles.
  2. Select a tab for the component resource for which you want to modify a custom role.

    Note

    If you have multiple Ansible Automation Platform components installed, you will see selections for the roles associated with each component in the Roles menu bar. For example, Automation Execution for automation controller roles, Automation Decisions for Event-Driven Ansible roles.

  3. Click the Edit role icon Edit next to the role you want and modify the role settings as needed.
  4. Click Save role to save your changes.

6.4. Deleting a role

Built in roles can not be deleted, however, you can delete custom roles from the Roles list view.

Procedure

  1. From the navigation panel, select Access Management Roles.
  2. Select a tab for the component resource for which you want to create custom roles.

    Note

    If you have multiple Ansible Automation Platform components installed, you will see selections for the roles associated with each component in the Roles menu bar. For example, Automation Execution for automation controller roles, Automation Decisions for Event-Driven Ansible roles.

  3. Click the More Actions icon next to the role you want and select Delete role.
  4. To delete roles in bulk, select the roles you want to delete from the Roles list view, click the More Actions icon , and select Delete roles.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.