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

Chapter 5. Browsing collections with Automation content navigator


As a content creator, you can browse your Ansible collections with Automation content navigator and interactively delve into each collection developed locally or within Automation execution environments.

5.1. Automation content navigator collections display

Automation content navigator displays information about your collections with the following details for each collection:

SHADOWED
Indicates that an additional copy of the collection is higher in the search order, and playbooks prefer that collection.
TYPE
Shows if the collection is contained within an automation execution environment or volume mounted on onto the automation execution environment as a bind_mount.
PATH
Reflects the collections location within the automation execution environment or local file system based on the collection TYPE field.

5.2. Browsing collections from Automation content navigator

You can browse Ansible collections with the Automation content navigator text-based user interface in interactive mode and delve into each collection. Automation content navigator shows collections within the current project directory and those available in the automation execution environments

Prerequisites

  • A locally accessible collection or installed automation execution environments.

Procedure

  1. Start Automation content navigator

    $ ansible-navigator
    Copy to Clipboard Toggle word wrap
  2. Browse the collection. Alternately, you can type ansible-navigator collections to directly browse the collections.

    $ :collections
    Copy to Clipboard Toggle word wrap
  3. Type the number of the collection you want to explore.

    :4
    Copy to Clipboard Toggle word wrap
  4. Type the number corresponding to the module you want to delve into.

    ANSIBLE.UTILS.IP_ADDRESS: Test if something in an IP address
     0│---
     1│additional_information: {}
     2│collection_info:
     3│  authors:
     4│  - Ansible Community
     5│  dependencies: {}
     6│  description: Ansible Collection with utilities to ease the management, manipulation,
     7│    and validation of data within a playbook
     8│  documentation: null
     9│  homepage: null
    10│  issues: null
    11│  license: []
    12│  license_file: LICENSE
    13│  name: ansible.utils
    14│  namespace: ansible
    15│  path:/usr/share/ansible/collections/ansible_collections/ansible/utils/
    16│  readme: README.md
    <... output truncated...>
    Copy to Clipboard Toggle word wrap
  5. Optional: jump to the documentation examples for this module.

    :{{ examples }}
    
    0│
    1│
    2│#### Simple examples
    3│
    4│- name: Check if 10.1.1.1 is a valid IP address
    5│  ansible.builtin.set_fact:
    6│    data: "{{ '10.1.1.1' is ansible.utils.ip_address }}"
    7│
    8│# TASK [Check if 10.1.1.1 is a valid IP address] *********************
    9│# ok: [localhost] => {
    10│#     "ansible_facts": {
    11│#         "data": true
    12│#     },
    13│#     "changed": false
    14│# }
    15│
    Copy to Clipboard Toggle word wrap
  6. Optional: open the example in your editor to copy it into a playbook.

    :open
    Copy to Clipboard Toggle word wrap

Verification

5.3. Review documentation from Automation content navigator

You can review Ansible documentation for collections and plugins with the Automation content navigator text-based user interface in interactive mode. Automation content navigator shows collections within the current project directory and those available in the automation execution environments

Prerequisites

  • A locally accessible collection or installed automation execution environments.

Procedure

  1. Start Automation content navigator

    $ ansible-navigator
    Copy to Clipboard Toggle word wrap
  2. Review the module you are interested in. Alternately, you can type ansible-navigator doc to access the documentation.

    :doc ansible.utils.ip_address
    Copy to Clipboard Toggle word wrap
    ANSIBLE.UTILS.IP_ADDRESS: Test if something in an IP address
     0│---
     1│additional_information: {}
     2│collection_info:
     3│  authors:
     4│  - Ansible Community
     5│  dependencies: {}
     6│  description: Ansible Collection with utilities to ease the management, manipulation,
     7│    and validation of data within a playbook
     8│  documentation: null
     9│  homepage: null
    10│  issues: null
    11│  license: []
    12│  license_file: LICENSE
    13│  name: ansible.utils
    14│  namespace: ansible
    15│  path:/usr/share/ansible/collections/ansible_collections/ansible/utils/
    16│  readme: README.md
    <... output truncated...>
    Copy to Clipboard Toggle word wrap
  3. Jump to the documentation examples for this module.

    :{{ examples }}
    
    0│
    1│
    2│#### Simple examples
    3│
    4│- name: Check if 10.1.1.1 is a valid IP address
    5│  ansible.builtin.set_fact:
    6│    data: "{{ '10.1.1.1' is ansible.utils.ip_address }}"
    7│
    8│# TASK [Check if 10.1.1.1 is a valid IP address] *********************
    9│# ok: [localhost] => {
    10│#     "ansible_facts": {
    11│#         "data": true
    12│#     },
    13│#     "changed": false
    14│# }
    15│
    Copy to Clipboard Toggle word wrap
  4. Optional: open the example in your editor to copy it into a playbook.

    :open
    Copy to Clipboard Toggle word wrap

    See Section 8.2, “Automation content navigator general settings” for details on how to set up your editor.

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