Add a New Role
  • 26 Mar 2024
  • Dark
    Light
  • PDF

Add a New Role

  • Dark
    Light
  • PDF

Article summary

New roles must be added to Ansible first before they can be synchronized and viewed by Automation Gateway.

Default Location to Add Roles

The default location for custom content to add a role is /usr/share/automation-gateway/ansible/roles , or you can custom your own folder path and add it to Configuration/Ansible/Role Paths array (Figure 1). Once you add a role to a folder that is in the "Role Paths" array and refresh the Roles in Automation Gateway, it should appear.

Figure 1: Role Path
01_Ansible_Roles_2023_1 copy

Refreshing a New Role

To refresh a new role:

  1. Navigate to API Documentation within the Automation Gateway UI.
  2. Find and expand the POST /roles/refresh.
  3. Click Try it out!
  4. Click Execute to refresh the cache and re-sync the roles with Ansible.
  5. Verify the response. Response Code 200 indicates the refresh was successful.
  6. Go back to the Roles section of Automation Gateway to view and use the new roles.

Figure 2: Post Roles
17_AG_API_Post_Roles_2019-04-011


Figure 3: Post Roles Response
18_AG_API_Post_Roles_Responses_2019-04-011


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.