• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haidaraM / ansible-playbook-grapher / 12265505549
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/ruff-0.15.8
DEFAULT BRANCH: master
Ran 10 Dec 2024 10:04PM UTC
Jobs 4
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Dec 2024 10:03PM UTC coverage: 94.298% (+0.02%) from 94.274%
12265505549

push

github

web-flow
feat: Add support for ignoring standalone tasks and role tasks in the graph view (#218)

## Premise
When running the ansible-playbook-grapher on a huge project folder the
resulting svg or mermaid graph happens to be quiet confusing with all
the task nodes being rendered. So far there was no option to view all
roles (also nested roles) without viewing the corresponding tasks, so I
implemented a feature to do exactly that.

## Changes
- Add entry for the new option ```--only-roles``` in README.md
- Add the option in ```cli.py``` and adjust ```grapher.py``` and
```parser.py``` accordingly
- Update docstrings accordingly
- Add logic to prevent tasks from being added
- Lint project with the corresponding make target
- Add cli and parser tests

## Screenshots
without ```--only-roles```

![group-roles-by-name](https://github.com/user-attachments/assets/4b5277fe-636c-45b3-b35b-675b11e0f8de)
with ```--only-roles```

![group-roles-by-name-only-roles](https://github.com/user-attachments/assets/1214b3c1-9f8f-4347-9759-83fe74e03f64)

---------

Co-authored-by: David Merkl <dme@ordix.de>
Co-authored-by: Mohamed El Mouctar Haidara <elmhaidara@gmail.com>

893 of 947 relevant lines covered (94.3%)

3.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py3.12-ansible2.18.* - 12265505549.1 10 Dec 2024 10:05PM UTC 0
94.3
GitHub Action Run
2 py3.11-ansible2.18.* - 12265505549.2 10 Dec 2024 10:05PM UTC 0
94.3
GitHub Action Run
3 py3.11-ansible2.17.* - 12265505549.3 10 Dec 2024 10:05PM UTC 0
94.3
GitHub Action Run
4 py3.12-ansible2.17.* - 12265505549.4 10 Dec 2024 10:05PM UTC 0
94.3
GitHub Action Run
Source Files on build 12265505549
Detailed source file information is not available for this build.
  • Back to Repo
  • 38bfcc77 on github
  • Prev Build on main (#12245535555)
  • Next Build on main (#12266008251)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc