![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ansible
duyamo
这个作者很懒,什么都没留下…
展开
-
ansible配置文件
原创 2019-08-20 19:03:28 · 124 阅读 · 0 评论 -
ansible组件playbook
q原创 2019-08-20 15:17:35 · 195 阅读 · 0 评论 -
ansible常用模块
Ansie常用系统模块:ping、command、copy、yum、file、user 一、Ansible ping模块 Ansible最基础的模块是ping模块,主要用于判断远程客户端是否在线,用于ping本身服务器,返回值是changed、ping 使用Ansible ping服务器状态,代码为ansible -k all -m ping 因为我的ansible服务器已经做了免密登录,所以不用...原创 2019-08-20 11:00:13 · 352 阅读 · 0 评论 -
ansible_初级
test-4 test-5 192.168.1.4 192.168.1.5原创 2019-08-19 20:07:49 · 152 阅读 · 0 评论 -
ansible问题
问题1: 如果ssh的known_hosts文件被删除,远程登陆的时候会出现提示yes/no,ansible不能自动 处理则报错如下: [root@ansible ~]# ansible web2 -a ‘uptime’ web2 | FAILED | rc=-1 >> Using a SSH password instead of a key is not possible beca...原创 2019-08-20 19:07:12 · 510 阅读 · 0 评论