Add a New Role

Prev Next

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