Comments (11)
@mysiki I'm thinking of respecting the value of
display_skipped_hosts
in ansible.cfg orANSIBLE_DISPLAY_SKIPPED_HOSTS
env var (https://docs.ansible.com/ansible/latest/reference_appendices/config.html#display-skipped-hosts).
If false/0, I will remove the corresponding tasks from the graph.The idea is to be as close as possible to Ansible's behavior.
Oh yes, if it simple to use this it avoid to add command switch and many piece of code. And we have env var for manage it so I think it's good.
Just think to add it in documentation, because depend of callback using, some do not use this variable.
from ansible-playbook-grapher.
Great ! It work for me. I test it with ansible 2.8.
I don't make all possible test, only some classic -t and --skip-tags. But the render is great !
from ansible-playbook-grapher.
Hi,
- Graph option: I have thought about doing that. I will see if it's possible to do that. The rendering options (shapes, lines) are currently directly integrated in the graph
- It's normal: I chose to do it this way. It should be possible to completely skip them instead of reducing their opacity.
from ansible-playbook-grapher.
Thank for reply, for me the second point is really important. I have many many tasks and subplaybook in my project, generate graph without skip tasks will be really great. If you find some time for work on it, ping me, I can make some test really fast.
It's normal: I chose to do it this way. It should be possible to completely skip them instead of reducing their opacity.
from ansible-playbook-grapher.
I also suggest to omit tasks having when: False
.
from ansible-playbook-grapher.
@mysiki I'm thinking of respecting the value of display_skipped_hosts
in ansible.cfg or ANSIBLE_DISPLAY_SKIPPED_HOSTS
env var (https://docs.ansible.com/ansible/latest/reference_appendices/config.html#display-skipped-hosts).
If false/0, I will remove the corresponding tasks from the graph.
The idea is to be as close as possible to Ansible's behavior.
from ansible-playbook-grapher.
@drzraf It should be possible to omit these tasks too
from ansible-playbook-grapher.
After I thought about it, I will not use the value of display_skipped_hosts
. By default, Ansible doesn't display skipped tasks when using the option "-t" or "--skip-tasks".
I confused this behavior with the "when" condition when the tasks are displayed even though they are not run.
from ansible-playbook-grapher.
ok, you are right. So you just doesn't display skipped task (?). Can I test the PR ?
from ansible-playbook-grapher.
Yes. You can test it
from ansible-playbook-grapher.
Released in 0.10.0
from ansible-playbook-grapher.
Related Issues (20)
- [Feature request] Add rendered graphs to pull requests
- [Feature request] Multiple playbooks in one graph HOT 6
- [Bug report] ansible-playbook-grapher doesnt work with ansible-core 2.13.1
- After upgrading from 1.1.2 to 1.1.3 HOT 5
- [Bug report] Fix Maximum call stack size exceeded
- ansible-playbook-grapher fails with different errors in different versions after upgrading from 1.1.2 to 1.2.0 HOT 3
- [Feature request] Variable mapping option HOT 2
- [Feature request] generate mermaid instead of images HOT 7
- [Bug report] Please bump version of ansible-core HOT 8
- [Feature request] Include inventory graphing and make this the ansible-super-grapher
- [Feature request] Version Bump :) HOT 2
- [Feature request] Automage releases via Github
- Does the tool have run playbooks first? HOT 3
- [Feature request] Add a key to hide plays(tasks) without any role HOT 11
- [Bug report] No support for playbooks using `import_tasks` HOT 2
- [Feature request] Add JSON renderer for later consumption by third party tools
- [Bug report] Graphviz : properly rank the edges
- [Bug report] TypeError: 'str' object is not callable HOT 7
- [Feature request] Support for blocks in pre_tasks. HOT 13
- [Bug report] Graphviz Rendering: improvements for large number of plays and tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-playbook-grapher.