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

All inventory, roles and collections commands · Ansible 2 cheatsheet

Was this page helpful?