Ansible Automation Platform Build Inventory and Template
A 4-step recipe with Red Hat. We can help you get access.
Recipe · 4 steps
Ansible Automation Platform Build Inventory and Template
with Red Hat · IT Operations Management
Resolve an org, create an inventory, create a template, and launch a job.
- List organizations and capture the id of the first one to own the new inventory.
- Create a new inventory within the resolved organization.
- Create a job template bound to the new inventory and the supplied project and playbook.
- Launch an initial job from the new template to validate that the inventory and template are wired up correctly.
What you'll need to have ready
- token: OAuth2 bearer token for the Automation Platform API.
- inventoryName: The name for the new inventory.
- inventoryDescription: A description for the new inventory.
- templateName: The name for the new job template.
- project: The id of the project supplying the playbook.
- playbook: The playbook file name to run.
For your developer
Arazzo workflow red-hat:build-inventory-and-template, 4 operations: getApiV2Organizations → createInventory → createJobTemplate → launchJobTemplate. Specs on APIs.io.