centos7上安装,配置ansible的坑

一、首先要准备好repo源
1.从阿里云下载Centos的仓库源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2.从阿里云下载第三方epel源 (这里直接下载,未使用rpm -Uvh方式安装epel源)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

二、安装expect命令
后期要通过expect进行自动交互式批量下发到被监管机上,由于centos7最小化安装没有自带expect命令,用下面命令安装:
yum -y install expect

猜你喜欢

转载自blog.51cto.com/13799365/2378376