Bootstrap

Centos 7安装Ansible+Ansible-Tower自动化运维工具

一、安装前环境

Centos 7 最小化安装 | 4G内存 | 100GB硬盘

注:Ansible-Tower目前支持7.4+的版本,可以使用yum update -y命令更新

同时机器一定要联网,因为执行./setup的时候会联网安装很多的依赖包,安装速度和你的网速有关

二、安装Ansible

1.安装Ansible的epel源

yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
yum update -y

2.清空缓存,安装Ansible

yum clean all
yum install -y ansible

至此Ansible安装成功

 

三、安装Ansible-Tower

1.下载解压所需的安装包

cd /home
yum install -y wget
wget http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz
tar zxvf ansible-tower-setup-latest.tar.gz

2.移动安装包到/usr/local下

mv ansible-tower-setup-3.3.0-1/ /usr/local/ansible-tower

 

3.配置inventory文件

sed -i "s#password=''#
;