5.2. Automation 콘텐츠 navigator에서 컬렉션 검색
Automation 콘텐츠 navigator 텍스트 기반 사용자 인터페이스를 대화형 모드에서 사용하여 Ansible 컬렉션을 찾고 각 컬렉션을 탐색할 수 있습니다. 자동화 콘텐츠 navigator는 현재 프로젝트 디렉터리 내의 컬렉션과 자동화 실행 환경에서 사용 가능한 컬렉션을 보여줍니다.
사전 요구 사항
- 로컬에 액세스할 수 있는 컬렉션 또는 설치된 자동화 실행 환경.
절차
Automation 콘텐츠 navigator 시작
$ ansible-navigator
컬렉션을 찾습니다. 또는
ansible-navigator 컬렉션을 입력하여 컬렉션을직접 검색할 수 있습니다.$ :collections

검색할 컬렉션의 수를 입력합니다.Type the number of the collection you want to explore.
:4

제공하려는 모듈에 해당하는 번호를 입력합니다.
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...>선택 사항: 이 모듈에 대한 문서 예제로 이동합니다.
:{{ 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│선택 사항: 편집기에서 예제를 열어 플레이북에 복사합니다.
:open

검증
컬렉션 목록을 찾습니다.

추가 리소스