Visualizes Ansible inventory inheritance hierarchies and variable definitions using Graphviz.
ansible-inventory-grapher is a Python-based CLI tool that generates Graphviz dot files from Ansible inventories. It visualizes inventory inheritance hierarchies and variable definitions, helping users understand and debug complex inventory structures. The tool outputs files that can be rendered into diagrams showing group relationships and variable scopes.
Ansible administrators, DevOps engineers, and infrastructure developers managing complex multi-environment inventories who need to visualize group hierarchies and variable assignments.
It provides a clear, graphical view of inventory structures that text-based inventories lack, with customizable templates and Graphviz integration for tailored visualizations. Unlike manual diagramming, it automates visualization directly from live inventories.
ansible-inventory-grapher is a command-line tool that generates Graphviz dot files from Ansible inventories. It helps administrators and developers understand complex inventory structures by visualizing group inheritance and the scopes where variables are defined.
The tool emphasizes clarity and customization, allowing users to visualize and debug complex Ansible inventory structures through flexible, graph-based representations.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports custom Jinja2 templates via the -t option, allowing tailored graph output, as shown in the README's template replacement feature.
Displays variable definitions at host or group levels with the -q option to toggle, aiding in debugging variable precedence directly from inventories.
Uses Ansible's pattern matching syntax to generate graphs for specific hosts or groups, enabling focused analysis of complex setups.
Outputs standard dot files compatible with Graphviz, allowing rendering into various formats like PNG via post-processing commands.
Requires Graphviz installed separately to render diagrams, adding setup complexity and an extra step for users.
Generates static images only; lacks built-in interactive features or automatic updates when inventories change.
The direct pipeline to image viewers only works for one pattern, as noted in the README, hindering batch processing in a single command.