Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebn/ansible-roles-graph
https://github.com/sebn/ansible-roles-graph
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sebn/ansible-roles-graph
- Owner: sebn
- License: gpl-3.0
- Created: 2015-12-03T22:53:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T22:38:00.000Z (almost 6 years ago)
- Last Synced: 2024-07-18T01:53:37.681Z (4 months ago)
- Language: Python
- Size: 52.7 KB
- Stars: 25
- Watchers: 2
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- awesome-starred - sebn/ansible-roles-graph - (others)
README
# ansible-roles-graph
Generate a graph of Ansible role dependencies.
## Install
pip install ansible-roles-graph
Assuming you already installed [graphviz](http://www.graphviz.org/)
with [python bindings](http://www.graphviz.org/pdf/gv.3python.pdf).## Usage
Quite simply:
ansible-roles-graph
Will look for roles in the `./roles/` directory, and generate an `./ansible-roles.png` file.
The command also accepts multiple role directories and various options:
ansible-roles-graph -o schema.png -f png roles/ ../other/roles
See `ansible-roles-graph --help` for more info.
## Output
![PNG example](./example.png)
## License
[GNU GPLv3 or later](https://www.gnu.org/licenses/gpl.html)