Ansible-AWX docker 기반 구성 (Ansible-AWX Installation with docker)

2023. 11. 6. 12:59IT System Engineer

 

# Ansible-AWX docker 기반 설치

yum -y install epel-release git gcc yum-utils

yum-config-manager --add-repo  https://download.docker.com/linux/centos/docker-ce.repo
yum -y install ansible python-pip
yum -y install docker-ce
systemctl enable docker
systemctl start docker

pip install -U pip docker-compose==1.23.2

git clone -b 14.1.0 https://github.com/Ansible/awx.git
cd awx/installer

ansible-playbook -i inventory install.yml

sudo pip3 uninstall docker docker-py docker-compose

sudo pip3 install docker-compose
sudo yum install docker docker.io -y

yum install python3 python36-docker -y
pip3 install docker-compose

ansible-playbook -i inventory install.yml

pip3 install docker


### Ansible 구성

vi /etc/ansible/ansible.cfg

[defaults]
host_key_checking = False

(ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

ssh-copy-id localhost