Ansible in a Minute · AAP 2.7 ·
Create an inventory in AAP 2.7
Short answer
Create an inventory in Ansible Automation Platform 2.7 so you can group hosts for jobs.
Subscribe for updates
Get an email whenever we publish new guides and blog posts. Unsubscribe anytime.
By subscribing you agree we may email you about Ansible in a Minute and related Level Up Labs updates. We store your address in the same lead sheet as our contact form.
Request
Create a new inventory named My inventory in the Default organization, then add a host.
How it works
An inventory holds hosts and groups. Create the inventory before you add hosts or inventory sources.
When to use it
- Starting a new automation project
- Separating environments such as lab and production
Requirements
- AAP: 2.7
- Access to Automation Execution with permission to create inventories
Procedure
- Open Automation Execution.
- Open Infrastructure → Inventories.
- Select Create inventory → Create inventory.
- Enter Name:
My inventory. - Set Organization: Default.
- Select Create inventory.
- Add a new host or an existing host to the inventory.
Result
You have an inventory with at least one host. Next, use it in a job template.
Reference
- Add a new inventory (Red Hat Ansible Automation Platform 2.7)