Amazon Linux를 ansible 설치
1. 파이썬 버전 확인
[root@ip-10-0-0-207 ~]# python -V
Python 2.7.16
2. Amazon Linux에서 ansible설치
amazon-linux-extras install ansible2 -y
[root@ip-10-0-0-207 ansible]# pwd
/etc/ansible
[root@ip-10-0-0-207 ansible]# ansible --version
ansible 2.8.5
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 = /usr/bin/ansible
python version = 2.7.16 (default, Sep 13 2019, 20:28:21) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
3. Ansible로 VPC 등을 만들어 보자.
참고 1. AWS Linux에서 OS 확인
[root@ip-10-0-0-207 etc]# more system-release
Amazon Linux release 2 (Karoo)
[root@ip-10-0-0-207 etc]# more os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
[root@ip-10-0-0-207 etc]#
감사합니다.