# 安装curlpostgresql
yum-y install vim curl postgresql
mkdir/tmp/tower && cd /tmp/tower
# 下载安装包 curl-k -O https://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz # 解压 tar xvf ansible-tower-setup-latest.tar.gz
# 进入到安装目录 cd ansible-tower-setup*/# 修改配置文件
[root@vm-CentOS750211 ansible-tower-setup-3.6.2-1]# sed -i "s#password=''#password='324215'#g" inventory
[root@vm-CentOS750211 ansible-tower-setup-3.6.2-1]# sed -i "s#host=''#host='127.0.0.1'#g" inventory
[root@vm-CentOS750211 ansible-tower-setup-3.6.2-1]# sed -i "s#port=''#port='5432'#g" inventory
# 安装并启动supervisord服务,否则启动报错
systemctl enable supervisord
systemctl start supervisord
# 创建日志目录,然后安装,否则会报错
[root@vm-CentOS750211 ansible-tower-setup-3.6.2-1]# mkdir -p /var/log/tower
[root@vm-CentOS750211 ansible-tower-setup-3.6.2-1]# ./setup.sh