haidaraM / ansible-playbook-grapher

A command line tool to create a graph representing your Ansible playbook tasks and roles
GNU General Public License v3.0
633 stars 53 forks source link

Generate graphs for galaxy/globally installed playbooks #203

Open j2udev opened 3 days ago

j2udev commented 3 days ago

Is your feature request related to a problem? Please describe. I'd like to be able to generate a graph by referencing the globally/galaxy installed playbook instead of the file location. So instead of

ansible-playbook-grapher /path/to/my/playbook.yml

I'd like to be able to do:

ansible-playbook-grapher my_namespace.my_collection.my_playbook

Describe the solution you'd like If I can run my playbook like this:

ansible-playbook my_namespace.my_collection.my_playbook

then I should also be able to

ansible-playbook-grapher my_namespace.my_collection.my_playbook

Describe alternatives you've considered N/A

Additional context N/A - ty for building this tool :)

haidaraM commented 21 hours ago

Hi,

This should be doable. I see what changes have to be done. Do you have some examples of collection on Ansible Galaxy or somewhere else containing playbooks I can use as examples for testing?

ty for building this tool :)

Welcome :-)