Add new role

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 customize your own folder path and add it to the Configuration/Ansible/Role Paths array. 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.

Ansible role paths configuration in Automation Gateway

Refresh a new role

2

Find the refresh endpoint

Find and expand POST /roles/refresh.

3

Try it out

Click Try it out!

4

Execute the refresh

Click Execute to refresh the cache and re-sync the roles with Ansible.

5

Verify the response

Verify the response. Response Code 200 indicates the refresh was successful.

6

View the new roles

Go back to the Roles section of Automation Gateway to view and use the new roles.

POST /roles/refresh endpoint in the API documentation
Response from POST /roles/refresh showing a successful refresh