퍼블릭 클라우드
[Ansible] Amazon Linux에 Ansible AWX를 설치하는 방법
변군이글루
2021. 5. 11. 16:49
반응형
Amazon Linux에 Ansible AWX를 설치하는 방법
AWX 설치 스크립트(테스트 중)
cat <<EOF > awx.sh
#!/bin/bash
sudo amazon-linux-extras install -y epel
sudo amazon-linux-extras install -y ansible2=2.4.6 docker=18.03.1
sudo systemctl enable --now docker
sudo yum -y install python-pip gcc wget
sudo pip install -U pip docker-compose==1.28.5
###python 2.7
git clone -b 10.0.0 https://github.com/ansible/awx.git
cd awx/installer
ansible-playbook -i inventory install.yml
wait
docker ps -a
cat inventory | egrep -v '^#|^$'
curl ifconfig.io
EOF
728x90
반응형