Git Product home page Git Product logo

Comments (11)

mysiki avatar mysiki commented on August 10, 2024 1

@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.

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.

mysiki avatar mysiki commented on August 10, 2024 1

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.

haidaraM avatar haidaraM commented on August 10, 2024

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.

mysiki avatar mysiki commented on August 10, 2024

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.

drzraf avatar drzraf commented on August 10, 2024

I also suggest to omit tasks having when: False.

from ansible-playbook-grapher.

haidaraM avatar haidaraM commented on August 10, 2024

@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.

haidaraM avatar haidaraM commented on August 10, 2024

@drzraf It should be possible to omit these tasks too

from ansible-playbook-grapher.

haidaraM avatar haidaraM commented on August 10, 2024

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.

mysiki avatar mysiki commented on August 10, 2024

ok, you are right. So you just doesn't display skipped task (?). Can I test the PR ?

from ansible-playbook-grapher.

haidaraM avatar haidaraM commented on August 10, 2024

Yes. You can test it

from ansible-playbook-grapher.

haidaraM avatar haidaraM commented on August 10, 2024

Released in 0.10.0

from ansible-playbook-grapher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.