Add a new playbook

New playbooks must be added first before they can be viewed in Itential Automation Gateway.

Default location to add playbooks

The default location for custom content to add a playbook is /usr/share/automation-gateway/ansible/playbooks, or you can customize the folder path and add it to the Configuration/Ansible/Playbook Paths array. Once a playbook is copied or downloaded to a folder in the Playbook Paths array and the playbooks in Itential Automation Gateway (IAG) are refreshed, it will display.

Default playbook location

Add a playbook to Itential Automation Gateway

Once a new playbook is added to Ansible, it can be added to IAG.

2

Find and expand the endpoint

Find and expand the POST /playbooks/refresh.

3

Try it out

Click Try it out!

4

Execute

Click Execute to re-sync the playbooks.

5

Verify the response code

Verify the response code. Response Code 200 indicates the retrieval was successful.

6

View the new playbook

Go back to the Playbooks section of IAG to view the newly added playbook.

If the execution output of an Ansible playbook run exceeds 1MB, IAG doesn’t display the raw output in the browser. You can download the output to your local system instead.