aspiers / ansible-viz

Graph relationships between Ansible playbooks / roles / tasks / vars etc. via static analysis
Apache License 2.0
40 stars 6 forks source link
ansible ansible-playbooks ansible-roles dependency-graph graph visualization

Build Status

ansible-viz

GraphViz depiction of Ansible dependencies.

Run:

gem install bundler
bundle install
bundle exec ruby bin/ansible-viz.rb <path-to-playbook-dir>

Now browse viz.html or with-vars.html. The diagram is drawn client-side with viz.js.

There are probably still a few bugs, particularly around var usage tracking.

See sample/README.txt for details on test data. Run

bundle exec rake test

to execute tests and generate a coverage report. The tests create a graph of the sample data in test.html.

Example

History

This tool was originally written by Alexis Lee, who kindly agreed to transfer maintainership over so that the project could be revived.

Similar projects