Ansible Tower(AWX)容器化部署
Posted 我的紫霞辣辣
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ansible Tower(AWX)容器化部署相关的知识,希望对你有一定的参考价值。
安装ansible awx
Ansible AWX是Ansible Tower的开源版本,其关系类似RedHat和CentOS的关系
安装docker
cd /etc/yum.repos.d/
wget http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-18.09.9 docker-ce-cli-18.09.9 containerd.io -y
systemctl start docker
systemctl status docker
docker info
mv /etc/yum.repos.d/docker-ce.repo /etc/yum.repos.d/docker-ce.repo.off
yum list docker-ce --showduplicates | sort -r
安装docker-compose
wget https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-x86_64
cp docker-compose-Linux-x86_64 /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
md5sum docker-compose-Linux-x86_64
docker-compose --version
安装ansible-awx
pip3 install -i https://mirrors.aliyun.com/pypi/simple docker-compose
wget https://github.com/ansible/awx/archive/17.0.0.zip
unzip -q 17.0.0.zip && cd awx-17.0.0/installer
cp inventory inventory.bak
vim inventory
...
project_data_dir=/var/lib/awx/projects
admin_password=Na123***
ansible-playbook -i inventory install.yml
以上是关于Ansible Tower(AWX)容器化部署的主要内容,如果未能解决你的问题,请参考以下文章
Red Hat Enterprise Linux 8.2 Install Ansible-Tower
Red Hat Enterprise Linux 8.2 Install Ansible-Tower