Code Monkey home page Code Monkey logo

Comments (6)

nuclear12 avatar nuclear12 commented on June 16, 2024 1

Hello
following your comments, i've tested changing the cmdline to --forks 15 and now it works with no additional arguments
emptying the cmdline breaks the run with the following error
In ansible-navigator.ansible.cmdline: none is not of type string
commenting the cmdline also enables it to works with no additional arguments
Thanks a lot for your help

from ansible-navigator.

ssbarnea avatar ssbarnea commented on June 16, 2024

cmdargs option is intended to contain not navigator own argument but the underlying called process arguments (ansible-playbook in this case.

We will keep this bug open in order to update the documentation to be more specific.

from ansible-navigator.

nuclear12 avatar nuclear12 commented on June 16, 2024

From what i've tested, if i don't put another flag after the ansible-navigator run playbook.yml, it will fail to run with the error listed
if i add either -v or -check, the playbook executes correctly
so there seems to be a bug when the run doesn't have any arguments added that it tries to send the -ce podman as an argument to ansible-playbook which is not recognized

from ansible-navigator.

shatakshiiii avatar shatakshiiii commented on June 16, 2024

Hey @nuclear12 , In your given configuration file cmdline argument is declared as cmdline: -ce podman which might be causing this error.

The cmdline option is used for passing extra parameter to the corresponding command.
For example:

---
ansible-navigator:
  ansible:
    cmdline: "--forks 15"

To specify container engine as podman, simply this should work:

ansible-navigator:
  execution-environment:
    container-engine: podman

from ansible-navigator.

cidrblock avatar cidrblock commented on June 16, 2024

Try using --ce podman, which is the parameter for navigator at the command line. When navigator doesn't recognize a flag it will pass it to the underlying command.

(that said, we should figure out why we aren't passing it to playbook when -v is used)

from ansible-navigator.

cidrblock avatar cidrblock commented on June 16, 2024

Oh.....

Here's the explanation.

If you have cmdline used in your setting file and don't provide any unrecognized parameters at the command line, the settings file entry will be used and passed to ansible-playbook

If you have cmdline used in your setting file and do provide some unrecognized paramater at the command line (e.g.-v) that will get passed to ansible-playbook instead of what is in the settings file.

This is a result of how navigator handles setting precedence: https://ansible.readthedocs.io/projects/navigator/faq/#what-is-the-order-in-which-configuration-settings-are-applied

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.