본문 바로가기

리눅스

Ansible 설치 및 업그레이드

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에 포함된 패키지 및 버전

Ansible Automation Platform on-premises included packages and versions

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/

- https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-node-requirements

 

728x90