728x90
Ansible 설치 및 업그레이드
테스트 환경
- 운영체제 버전 정보
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
Ansible 설치
python 버전
$ python --version
Python 2.7.5
앤서블 설치
yum install -y ansible ansible-python3
앤서블 버전
ansible --version
$ ansible --version
ansible 2.9.27
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.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, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
온프레미스 Ansible Automation Platform에 포함된 패키지 및 버전
728x90
pip 버전 확인
python3 -m pip -V
$ python3 -m pip -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
앤서블 설치
python3 -m pip install --user ansible
앤서블 버전 정보
python3 -m pip show ansible
$ python3 -m pip show ansible
Name: ansible
Version: 4.10.0
Summary: Radically simple IT automation
Home-page: https://ansible.com/
Author: Ansible, Inc.
Author-email: info@ansible.com
License: GPLv3+
Location: /root/.local/lib/python3.6/site-packages
Requires: ansible-core
pip 업그레이드
python3 -m pip install --upgrade pip
$ python3 -m pip -V
pip 21.3.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
앤서블 업그레이드
python3 -m pip install --upgrade --user ansible
참고URL
- https://github.com/ansible/ansible
- https://pip.pypa.io/en/stable/installation/
728x90
'리눅스' 카테고리의 다른 글
ansible-galaxy 명령어 (0) | 2022.08.25 |
---|---|
SSH 키를 생성하고 배포하여 원격 서버에 SSH 접속하는 방법 (0) | 2022.08.23 |
CentOS 7에서 python3 업그레이드 (0) | 2022.08.23 |
[Ansible] inventory(인벤토리) 설정 (0) | 2022.08.22 |
Ubuntu Server 22.04 LTS (Jammy Jellyfish) (0) | 2022.08.19 |