Ansible Install > Ansible 자료실

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

Ansible 자료실

설치 Ansible Install

페이지 정보

profile_image
작성자 AnsibleM
댓글 0건 조회 12,450회 작성일 20-10-21 13:44

본문

0. Settings

[Server Spec]
CPU - Core 2
Memory - 4096 MB
HDD - 100 GB
Network - 외부 통신 설정 필수

* Ansible은 controller 서버에만 설치 필요 *
[Controller Server 요구 사항]
Python - ver 2.6 or 3.5 이상 설치

[Remote Server 요구 사항]
ssh로 로그인 가능한 root or sudo 권한 계정 필요
네트워크상 통신 가능한 상태여야 함


1. Ansible Install

[Rhel/CentOS]
yum 활용 위해 Redhat Subscription 활성화 및 EPEL Repository 설치 필요

1
2
3
4
5
6
7
8
$ yum install -y ansible
$ ansible --version
ansible 2.9.1
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Jun 11 201914:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]


* python 기반으로 개발되었기 때문에 pip 활용한 설치 가능 *
1
$ pip install ansible
cs


[Ubuntu]
1
2
3
4
$ apt-add-repository ppa:ansible/ansible
$ apt-get update
$ apt-get install ansible
$ ansible --version
cs


※ 페쇄형 network 환경의 경우, Local Repository 구성 필요 ※
1
2
3
4
5
6
7
8
$ curl http://[ local_repository_server_ip ]/repository/ansible.repo >> /etc/yum.repos.d/ansible.repo
$ yum clean all
$ yum repolist
$ yum update -y
$ sync
$ reboot
$ yum install -y ansible
 
cs


2. Ansible Tower Install

Ansible Releases Server에서 Tower Install Program을 제공하고 있으며, Private Network로 구성된 고객도 설치 가능 하도록 Bundle Install 버전을 따로 제공.
Network 환경에 따라 Ansible Server에 접속하여 필요한 Version의 Install Program을 Download.
● bundle URL : https://releases.ansible.com/ansible-tower/setup-bundle/
● 일반 URL : https://releases.ansible.com/ansible-tower/setup/

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
31
$ wget https://releases.ansible.com/ansible-tower/setup-bundle/ansible-tower-setup-bundle-3.7.3-1.tar.gz
$ tar -zxvf ./ansible-tower-setup-bundle-3.7.3-1.tar.gz
$ cd ./ansible-tower-setup-bundle-3.7.3-1
$ cat ./inventory
[tower]
tower
 
[database]
 
[all:vars]
ansible_become=true
 
admin_password='password'
 
pg_host=''
pg_port=''
 
pg_database='awxr'
pg_username='awx'
pg_password='password'
 
rabbitmq_username=tower
rabbitmq_vhost=tower
rabbitmq_password='password'
rabbitmq_port=5672
rabbitmq_cookie=cookiemonster
 
rabbitmq_use_long_name=true
 
$ sh ./setup.sh
 
cs


> 설치 완료 후 https://[ Ansible Tower IP Address ] 로 접속 가능
> 초기 UserName : admin
> 초기 Password : ansible tower 설치 디렉토리 경로의 inventory 파일에 지정한 admin_password 값
> 최초 접속 시 Tower License 등록 필요

* Ansible Tower 는 tower 자체 upgrade만 지원하므로, 향후 upgrade 시 ansible engine 별도 upgrade 필요 *

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
617
어제
1,504
최대
3,935
전체
793,476
Copyright © www.linuxdata.org All rights reserved.