ansible-playbook-grapher icon indicating copy to clipboard operation
ansible-playbook-grapher copied to clipboard

[Feature request] Add support for role dependencies

Open sboisson opened this issue 4 years ago • 5 comments

It would be great if the graph would include role dependencies (from meta/main.yml of each roles, including the one imported from ansible Galaxy)

sboisson avatar May 19 '20 12:05 sboisson

It would be great if the graph would include role dependencies (from meta/main.yml of each roles, including the one imported from ansible Galaxy)

I would like to include on the request the include_role directive inside the tasks. Regards

jordibass avatar Jun 04 '20 09:06 jordibass

Will see if I can fetch the role dependencies when reading the playbook.

@jordibass I post a this comment regarding the include_role directive.

haidaraM avatar Jun 05 '20 10:06 haidaraM

@haidaraM the include_role is an incredibly common case when including tasks from roles, is there a way to workaround this in order to not append the tasks of the role as mere "tasks" instead splitting them in their corresponding roles?

ccamacho avatar Nov 12 '20 09:11 ccamacho

@ccamacho Will see if I can find a way to manage include_role as a classic role. Just marked #22 as feature requests

haidaraM avatar Nov 12 '20 22:11 haidaraM

@ccamacho @jordibass The behavior of include_role have been changed. See my comment: https://github.com/haidaraM/ansible-playbook-grapher/issues/22#issuecomment-920357882

haidaraM avatar Sep 22 '21 14:09 haidaraM

After reviewing, it's already supported by the grapher. I added a test case for it. Feel free to comment or create a new issue if you have some use cases that are not supported.

haidaraM avatar Oct 10 '22 22:10 haidaraM