Ansible 2 · Inventory, roles and collections
Show the inventory as a tree
Print the groups and hosts as a tree.
ansible-inventory -i inventory.ini --graph
Official Ansible 2 documentation
More inventory, roles and collections commands
- Show the inventory
- 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