安装环境
centos 7.3
安装步骤
1、由于ansible安装包不在镜像包中,需要安装epel-release,从网站上下载对应的,并且默认的epel源比较慢,改用阿里的epel源进行ansible的安装包下载
3、安装ansible
#yum -y install ansible
4、把要被管理的主机加进来
#vim /etc/ansible/hosts
5、
#vim /etc/ansible/ansible.cfg
1> 禁用每次执行ansbile命令检查ssh key host
host_key_checking = False
2> 开启日志记录
log_path = /var/log/ansible.log
3> ansible连接加速配置