Add a New Role
- 26 Mar 2024
-
DarkLight
-
PDF
Add a New Role
- Updated on 26 Mar 2024
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
Refreshing a New Role
To refresh a new role:
- Navigate to API Documentation within the Automation Gateway UI.
- Find and expand the
POST /roles/refresh
. - Click Try it out!
- Click Execute to refresh the cache and re-sync the roles with Ansible.
- Verify the response. Response Code 200 indicates the refresh was successful.
- Go back to the Roles section of Automation Gateway to view and use the new roles.
Figure 2: Post Roles
Figure 3: Post Roles Response
Was this article helpful?