SMALL
※ Ansible 2.9 및 Ubuntu 20.04 LTS 기준으로 작성되었습니다.
Ansible 설치
1. 설치 전 요구 사항
1) 제어 노드(Control Nodes) 요구사항
- Python2(version 2.7) 또는 Python3(version 3.5 이상) 설치
- RedHat Enterprise Linux, Debian, CentOS, Ubuntu, MacOS, BSD 등 Unix 계열
- Windows는 지원하지 않습니다.
2) 관리 노드(Managed Nodes) 요구사항
- SSH 통신이 가능해야 합니다.
- SFTP를 사용할 수 있어야 합니다. (SFTP를 사용할 수 없는 경우 SCP 사용 가능)
- Python2(version 2.6 이상) 또는 Python3(version 3.5 이상) 설치
2. Ansible 설치
apt update
apt install -y software-properties-common
apt-add-repository -y -u ppa:ansible/ansible
apt install -y ansible
3. Ansible 명령 쉘 자동 완성
apt install -y python3-argcomplete
activate-global-python-argcomplete3
4. Ansible Lint 설치
apt install -y ansible-lint
exec bash
SMALL
'IaC > Ansible 이론' 카테고리의 다른 글
Ansible 모듈 및 플러그인 | 모듈 종류, 플러그인 종류, 확인 (0) | 2021.07.28 |
---|---|
Ansible 관리 노드 연결 | 인증, SSH, 권한 상승, 연결 플러그인 (0) | 2021.07.28 |
Ansible 구성 파일 | 우선 순위, 설정 확인, ansible-config (0) | 2021.07.28 |
Ansible 인벤토리(Inventory) | 정적 인벤토리, 동적 인벤토리, INI, YAML, 패턴 (0) | 2021.07.28 |
Ansible 개요 | 개념, 특징, 용어, 구조(아키텍처) (0) | 2021.07.28 |