Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 4. Reviewing inventories with Automation content navigator


As a content creator, you can review your Ansible inventory with Automation content navigator and interactively delve into the groups and hosts.

4.1. Reviewing inventory from Automation content navigator

You can review Ansible inventories with the Automation content navigator text-based user interface in interactive mode and delve into groups and hosts for more details.

Prerequisites

  • A valid inventory file or an inventory plugin.

Procedure

  1. Start Automation content navigator.

    $ ansible-navigator
    Copy to Clipboard Toggle word wrap

    Optional: type ansible-navigator inventory -i simple_inventory.yml from the command line to view the inventory.

  2. Review the inventory.

     :inventory -i simple_inventory.yml
    
       TITLE            DESCRIPTION
    0│Browse groups    Explore each inventory group and group members members
    1│Browse hosts     Explore the inventory with a list of all hosts
    Copy to Clipboard Toggle word wrap
  3. Type 0 to brows the groups.

      NAME               TAXONOMY                      TYPE
    0│general            all                           group
    1│nodes              all                           group
    2│ungrouped          all                           group
    Copy to Clipboard Toggle word wrap

    The TAXONOMY field details the heirarchy of groups the selected group or node belongs to.

  4. Type the number corresponding to the group you want to delve into.

      NAME              TAXONOMY                        TYPE
    0│node-0            all▸nodes                       host
    1│node-1            all▸nodes                       host
    2│node-2            all▸nodes                       host
    Copy to Clipboard Toggle word wrap
  5. Type the number corresponding to the host you want to delve into, or type :<number> for numbers greater than 9.

    [node-1]
    0│---
    1│ansible_host: node-1.example.com
    2│inventory_hostname: node-1
    Copy to Clipboard Toggle word wrap

Verification

  • Review the inventory output.

      TITLE            DESCRIPTION
    0│Browse groups   Explore each inventory group and group members members
    1│Browse hosts    Explore the inventory with a list of all hosts
    Copy to Clipboard Toggle word wrap
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat