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

All inventory, roles and collections commands · Ansible 2 cheatsheet

Was this page helpful?