Skip to content

how to pass limit to ansible-navigator run #834

Answered by cidrblock
DE110283 asked this question in Q&A
Discussion options

You must be logged in to vote

yeah, this seems to works fine with a quick test.... here's my inventory

all:
  vars:
    ansible_user: admin
    ansible_password: password
    ansible_become_pass: password
    ansible_become: True
    ansible_become_method: enable
    ansible_connection: ansible.netcommon.network_cli
    ansible_python_interpreter: python
    ansible_network_cli_ssh_type: libssh

  children:
    nxos:
      hosts:
        nxos101:
        nxos102:
        nxos103:
        nxos104:
      vars:
        ansible_network_os: cisco.nxos.nxos

and if I run with a limit for just one host:

(venv) x1 ➜  nav_demo ansible-navigator run site.yaml -i inventory -l nxos101 --ll debug --la false --mode stdout

PLAY [Co…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #827 on January 29, 2022 12:24.