Este conteúdo não está disponível no idioma selecionado.
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 Copiar o linkLink copiado para a área de transferência!
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
Start Automation content navigator.
ansible-navigator
$ ansible-navigatorCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: type
ansible-navigator inventory -i simple_inventory.ymlfrom the command line to view the inventory.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
: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 hostsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Type
0to brows the groups.NAME TAXONOMY TYPE 0│general all group 1│nodes all group 2│ungrouped all group
NAME TAXONOMY TYPE 0│general all group 1│nodes all group 2│ungrouped all groupCopy to Clipboard Copied! Toggle word wrap Toggle overflow The
TAXONOMYfield details the heirarchy of groups the selected group or node belongs to.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
NAME TAXONOMY TYPE 0│node-0 all▸nodes host 1│node-1 all▸nodes host 2│node-2 all▸nodes hostCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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
[node-1] 0│--- 1│ansible_host: node-1.example.com 2│inventory_hostname: node-1Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
TITLE DESCRIPTION 0│Browse groups Explore each inventory group and group members members 1│Browse hosts Explore the inventory with a list of all hostsCopy to Clipboard Copied! Toggle word wrap Toggle overflow