首页 > 其他 > 详细

ansible配置

时间:2019-02-28 21:56:07      阅读:161      评论:0      收藏:0      [点我收藏+]

1、安装阿里云epel源

2、yum install ansible

3、默认的inventory文件/etc/ansible/hosts

hosts文件格式

[group1]
10.1.1.1
10.1.1.1:1008               
server01  ansible_host=10.1.1.1 ansible_port=49159 ansible_user=root ansible_ssh_pass=123456   

 4、ansible命令  ansible <host-pattern> [options]

  4.1 <host-pattern>    

ip地址或别名
组名
all
*
#支持正则和统配符,更多参考http://www.ansible.com.cn/docs/intro_patterns.html

  4.2  [options]

 

ansible配置

原文:https://www.cnblogs.com/huang99882008/p/10453245.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!