728x90
(1) 아래 명령문을 실행합니다.
sudo yum install ansible
(2) 설치에 성공하면 아래와 같이 Complete이 출력되고, --version을 통해서 버전 확인이 가능합니다.
...
Installed:
ansible.noarch 0:2.4.2.0-2.el7
Dependency Installed:
python-cffi.x86_64 0:1.6.0-5.el7
.....
Complete!
[centos@ip-172-31-35-73 ~]$ ansible --version
ansible 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/centos/.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, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
(2)-1 만약 No package ansible available.이라고 나오는 경우에는, 아래와 같이 입력한 후에 다시 위 명령문을 실행합니다.
sudo yum install epel-release
sudo yum repolist
'IaaS > IaC(InfraAsCode)' 카테고리의 다른 글
TerraTest 란? (0) | 2022.07.20 |
---|---|
(IaC) Chef, Puppet, Ansible, SaltStack 의 비교 (0) | 2022.03.03 |
(Terraform) Terraform으로 IaC(Infra As Code) 방식으로 AWS 세팅 (0) | 2021.08.31 |