author: headsen chen
date: 2018-08-02 11:46:35
1,ansible的安装
yum install epel-release
yum -y install ansible
2,配置需要管理的客户端:
2.1 添加ssh的免秘钥登陆
ssh-keygen -t rsa # 使用ssh2.0版本的加密方式
ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.200
2.2 配置本地的ansible的hosts文件: /etc/ansible/hosts
[group1]
192.168.0.200