yum list ansible 检测是否有epel源。如果没有可以到阿里云下载。再安装
yum -y install ansible.
ansible -v 查看版本的信息
 
ansible的使用格式:

 

 ansible  topass123 -m command -a hostname

 
 
 
 
 
 
 
 
 
 
 
posted on 2020-03-23 20:23  topass123  阅读(140)  评论(0编辑  收藏  举报