Giter Club home page Giter Club logo

Comments (3)

ssbarnea avatar ssbarnea commented on August 19, 2024

Navigator does not support use of ANSIBLE_STDOUT_CALLBACK because it needs to know what is the output in order to be able to recognize it and act.

Currently we have no plans to allow use of custom output formats.

from ansible-navigator.

cidrblock avatar cidrblock commented on August 19, 2024

Like @ssbarnea mentioned here, it's really a limitation of how runner need to scrape the stdout from core to create structured data.

One way to work around this might be to use ansible-navigator exec and run ansible-playbook directly. This would land you in the EE and navigator would take care of all the volume mounts for you.

Let us know if that might work.

from ansible-navigator.

myllynen avatar myllynen commented on August 19, 2024

Thanks for looking into this.

I experimented with the suggestion and the most efficient command line stanza to solve this would seem to be:

ansible-navigator exec env ANSIBLE_STDOUT_CALLBACK=default ansible-playbook test.yml -i ./inv

Since we always have ANSIBLE_STDOUT_CALLBACK=awx_display set when entering the container we need to override that but since the ansible-navigator exec subcommand will try to exec() something we can't use the regular shell syntax but instead will execute env(1) to set the variable to our liking.

Of course, the above command gets tedious to type after a while so I'm now using this alias:

alias ap='ansible-navigator exec env ANSIBLE_STDOUT_CALLBACK=default ansible-playbook'

And this allows me to run playbooks in EEs using the default callback as if using plain ansible-playbook:

ap test.yml -i ./inv

Thanks!

from ansible-navigator.

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.