生成一个负责角色依赖关系图。
ansible-roles-graph的Python项目详细描述
#ansible roles图
生成一个负责角色依赖关系图。
##安装
pip install ansible-roles-graph
假设您已经安装了[graphviz](http://www.graphviz.org/) 使用[python绑定](http://www.graphviz.org/content/python-graphviz)。
##用法
很简单:
ansible-roles-graph
将在/roles/目录中查找角色,并生成/ansible roles.png文件。
该命令还接受多个角色目录和各种选项:
ansible-roles-graph -o schema.png -f png roles/ ../other/roles
有关详细信息,请参见“Ansible Roles Graph–help”。
##输出
啊![png示例](./example.png)
##许可证
[GNU GPLv3或更高版本](https://www.gnu.org/licenses/gpl.html)