Ansible-playbook-grapher

Latest version: v2.8.0

Safety actively analyzes 701948 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.8.0

What's Changed

* **fix: Make sure the import_role tasks are always added to the graph. More info
at https://github.com/haidaraM/ansible-playbook-grapher/pull/231.**
* **Changes the shape of the graphviz node to make it consistent with Mermaid. The tasks will be rectangle instead of
`octagon`: https://graphviz.org/doc/info/shapes.html**
* **fix: Remove the play name from the edge going from the playbook to the plays. This was not consistent with the other edges.**
* **fix: The tags on the role itself should not be evaluated. Instead, what we care about is the tasks (they inherit the
tags set on the roles).** More
info [here.](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_tags.html#adding-tags-to-roles)
* **The empty roles and blocks are no longer displayed by default**. An empty role is a role with no tasks (after applying the tags
filters, for example). This is the same behavior as the option `--hide-empty-plays` but with roles. **I will eventually
drop `--hide-empty-plays` to make this the default behavior in the future.**
* feat: Add the initial support for handlers to the graph with `--show-handlers`. They are by default
added at the end of the play and roles only. This might change in the future to actually reflect the handlers' behavior.
* feat: Add a new option `--title` to add a title to the graph by haidaraM
in https://github.com/haidaraM/ansible-playbook-grapher/pull/229. Default to 'Ansible Playbook Grapher'. The graphviz
renderer will now use this as the title (label). The Mermaid renderer already has a title.
* improvement: Make the play node label like what "ansible-playbook --list-tasks" show. This is more consistent with the
actual playbook output.
* fix: The playbook `location.path` should be the absolute path + use local paths when testing by haidaraM
in https://github.com/haidaraM/ansible-playbook-grapher/pull/230.
* docs: Add a comparison matrix for the different renderers
* (Internal) Moved some flags out of the parser to the renderer instead. The whole playbook and all the tasks and
roles (except the excluded ones) are always parsed. The renderer(s) will decide later what do based on the flags
* (Internal) Refactor how the nodes and tasks indices are computed given we can now add handlers after all the tasks are
parsed.
* (Internal) Add a new `display_name()` method to the node for a friendly name for the graph. This removes passing the
`node_label_prefix` in multiple places.

**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.7.0...v2.8.0

2.7.0

What's Changed

* fix: Blocks inside roles weren't added to the graph haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/225
* feat: Add support for excluding specific roles in the graph view with `--exclude-roles` by Eltryo in https://github.com/haidaraM/ansible-playbook-grapher/pull/219

**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.6.0...v2.7.0

2.6.0

What's Changed

* feat: Add support for ignoring standalone tasks and role tasks with `--only-roles` in the graph view by Eltryo in https://github.com/haidaraM/ansible-playbook-grapher/pull/218
* fix: Tasks in 'include_role' were being wrongly included in the graph by default by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/222
* fix: Increase Ansible and Python compatibility range to [2.16, 2.18.2[ by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/220
* fix(mermaid): More rounded role node for consistency with graphviz
* ci: Collapse the mermaid graphs in the job summary by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/221
* ci: Make sure workflows are triggered for forks
* chore(deps): bump pytest from 8.3.3 to 8.3.4 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/216

**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.5.1...v2.6.0

2.5.1

What's Changed

* chore(deps): bump ruff from 0.7.4 to 0.8.1 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/211
* chore(deps): update ansible-core requirement from >=2.16,<2.17.5 to >=2.17.5,<2.18.1 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/210

**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.5.0...v2.5.1

2.5.0

What's Changed

* **feat: Adding support for reading playbooks from collections by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/208**
* chore(deps): bump ruff from 0.7.1 to 0.7.4 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/209
* chore(deps): update ansible-core requirement from <2.17.3,>=2.16 to >=2.16,<2.17.5 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/201
* chore(deps): bump pytest-cov from 5.0.0 to 6.0.0 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/206
* chore(deps): bump ruff from 0.6.8 to 0.7.1 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/205

**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.4.0...v2.5.0

2.4.0

What's Changed

* ci: Use ruff for linting and format by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/199
* chore(deps): bump ruff from 0.6.4 to 0.6.8 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/202
* chore(deps): bump pytest from 8.3.2 to 8.3.3 by dependabot in https://github.com/haidaraM/ansible-playbook-grapher/pull/200
* fix: 'dict' object has no attribute 'ansible_pos' when validating arguments by haidaraM in https://github.com/haidaraM/ansible-playbook-grapher/pull/204


**Full Changelog**: https://github.com/haidaraM/ansible-playbook-grapher/compare/v2.3.0...v2.4.0

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.