Exported png doesn't seem valid
burvil opened this issue · 3 comments
Are there any requirements for what ansigenome expects when does a scan? I ask because I ran the following:
ansigenome scan directory-here/
ansigenome export -o /tmp/out.png
where directory-here contains my yaml playbooks and other include files that those yaml files refer to.
However, when I open /tmp/out.png, it just shows what seem to be a series of unconnected lines, laid out sequentially in a row. When I zoom in, it doesn't show me much; I can't make out anything for each line. I expected to see a graph of relationships, much like is shown in the README file on this github site.
I thought the reason I'm not seeing anything may have been because I have yaml files that are essentially just dictionary definitions or other files that are referred to, i.e. included, in the actual playbooks that have roles and hosts defined, i.e. that have a roles: and a hosts: section in the .yml file. So I copied to a subdirectory, and ran a scan on that subdirectory, but that doesn't even find any roles.
What do I need to do to see a graph of relationships like shown in the README?
Do you have dependencies set in your meta/main.yml
files for your roles?
Here's the documentation: https://docs.ansible.com/ansible/devel/user_guide/playbooks_reuse_roles.html#role-dependencies
Here's about 100 real examples:
https://github.com/debops/debops/tree/master/ansible/roles
Some of the above roles have dependencies, others do not. The graph you see in the README was based off this project, but at this point it's been a very long while since a new one was generated.