Ansible Galaxy > Ansible 자료실

본문 바로가기
사이트 내 전체검색

Ansible 자료실

운영 Ansible Galaxy

페이지 정보

profile_image
작성자 AnsibleM
댓글 0건 조회 10,012회 작성일 21-06-14 17:07

본문

Ansible Galaxy란 Ansible 사용자들이 작성한 공용 role 라이브러리이다. Ansible 사용자가 관리 작업을 수행하는 데 도움이 되는 role을 식별할 수 있는 검색 가능한 데이터베이스가 있으며, 또한 ansible-galaxy 명령어는 자신의 git에서 연동하도록 할 수도 있다.

참조 URL : https://galaxy.ansible.com/


1. Role 검색

1
2
3
4
5
6
7
8
ansible-galaxy search elasticsearch --author geerlingguy
 
Found 2 roles matching your search:
 
Name                              Description
----                              -----------
geerlingguy.elasticsearch         Elasticsearch for Linux.
geerlingguy.elasticsearch-curator Elasticsearch curator for Linux.
cs
> role 검색 명령어


2. Role 정보 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ansible-galaxy info username.role_name
 
Role: username.role_name
    description: Installs and configures a thing, a distributed, highly available NoSQL thing.
    active: True
    commit: c01947b7bc89ebc0b8a2e298b87ab416aed9dd57
    commit_message: Adding travis
    commit_url: https://github.com/username/repo_name/commit/c01947b7bc89ebc0b8a2e298b87ab
    company: My Company, Inc.
    created: 2015-12-08T14:17:52.773Z
    download_count: 1
    forks_count: 0
    github_branch:
    github_repo: repo_name
    github_user: username
    id: 6381
    is_valid: True
    issue_tracker_url:
    license: Apache
    min_ansible_version: 1.4
    modified: 2015-12-08T18:43:49.085Z
    namespace: username
    open_issues_count: 0
    path: /Users/username/projects/roles
    scm: None
    src: username.repo_name
    stargazers_count: 0
    travis_status_url: https://travis-ci.org/username/repo_name.svg?branch=main
    version:
    watchers_count: 1
cs
> 특정 role 에 대한 정보 확인


3. Role 설치

1
ansible-galaxy install namespace.role_name
cs
> role 설치
ansible에 설정된 기본 path인 ~/.ansible/roles 디렉토리에 설치됨

1
2
ansible-galaxy install geerlingguy.apache,1.0.0
 
cs
> role 특정 버전 설치

1
ansible-galaxy install git+https://github.com/geerlingguy/ansible-role-apache.git,0b7cd353c0250e87a26e0499e59e7fd265cc2f25
cs
> git 저장소를 직접 가리키고 branch명 이나 commit hash를 버전으로 지정 가능


4. 설치 리스트 확인

1
2
3
4
5
6
ansible-galaxy list
  - ansible-network.network-engine, v2.7.2
  - ansible-network.config_manager, v2.6.2
  - ansible-network.cisco_nxos, v2.7.1
  - ansible-network.vyos, v2.7.3
  - ansible-network.cisco_ios, v2.7.0
cs
>설치된 role 리스트 확인


5. Role 제거

1
ansible-galaxy remove namespace.role_name
cs
> 설치된 role 제거

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

회사명 : (주)리눅스데이타시스템 / 대표 : 정정모
서울본사 : 서울특별시 강남구 봉은사로 114길 40 홍선빌딩 2층 / tel : 02-6207-1160
대전지사 : 대전광역시 유성구 노은로174 도원프라자 5층 / tel : 042-331-1161

접속자집계

오늘
1,761
어제
1,534
최대
3,935
전체
758,493
Copyright © www.linuxdata.org All rights reserved.