Ansible 2 · Inventory, roles and collections
Show the inventory
Print the inventory as JSON, with variables.
ansible-inventory -i inventory.ini --list
Official Ansible 2 documentation
More inventory, roles and collections commands
- Show the inventory as a tree
- Install a role
- Install a collection
- Install from a requirements file
- Create a role skeleton
- Read module documentation
All inventory, roles and collections commands · Ansible 2 cheatsheet