5.3. Automation 콘텐츠 탐색에서 문서 검토

자동화 콘텐츠 navigator 텍스트 기반 사용자 인터페이스를 사용한 컬렉션 및 플러그인에 대한 Ansible 설명서를 대화형 모드에서 검토할 수 있습니다. Automation Content navigator는 현재 프로젝트 디렉터리 내의 컬렉션과 자동화 실행 환경에서 사용 가능한 컬렉션을 보여줍니다.

사전 요구 사항

  • 로컬에 액세스 가능한 수집 또는 설치된 자동화 실행 환경.

절차

  1. 자동화 콘텐츠 탐색 시작

    $ ansible-navigator
  2. 관심 있는 모듈을 검토합니다. 또는 ansible-navigator doc 를 입력하여 문서에 액세스할 수 있습니다.

    :doc ansible.utils.ip_address
    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...>
  3. 이 모듈에 대한 설명서 예제로 건너뜁니다.

    :{{ 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│
  4. 선택 사항: 편집기에서 예제를 열어 플레이북에 복사합니다.

    :open
    편집기의 문서 예

    편집기를 설정하는 방법에 대한 자세한 내용은 Automation content navigator 일반 설정을 참조하십시오.