![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ansible
番茄炒蛋君
这个作者很懒,什么都没留下…
展开
-
Ansible Playbook应用
目录: Ansible Playbook 介绍 Ansible 组件 Ansible 示例1:远程执行shell脚本 Ansible 示例2:远程安装nginx1.12剧本 Ansible 示例3:远程安装nginx1.12剧本(使用notify来触发handler) Ansible 示例4:template模板&变量定义和引用实战 Ansible 示例5:基于列表 items 多个...原创 2019-10-20 16:17:15 · 168 阅读 · 0 评论 -
ansible基础组件,参数及基本使用
官方文档: http://www.ansible.com.cn/index.html 内容源于: https://www.jianshu.com/p/575ced3a08fa ansible 简介 ansible是新出现的自动化运维工具,ansible是一个配置管理和应用部署工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric.Sal...转载 2019-04-28 14:16:21 · 910 阅读 · 0 评论 -
ansible ssh无密码访问
具体步骤: 第一种情况(已知ssh密码): 生成秘钥与公钥对(没有生成的话需要执行) #一直回车按默认设置 linux系统存放在 /root/.ssh文件夹下 ssh-keygen -t 将控制端生成的公钥copy到目标机器 ssh-copy-id -i /root/.ssh/id_rsa.pub user@dst_ip 尝试登录 ssh user@dst_ip 第二种情况(已知...原创 2019-04-28 15:16:27 · 406 阅读 · 0 评论 -
ansible常用模块
全部模块的文档: https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html ping模块 setup模块 file模块 copy模块 service模块 cron模块 ping模块(可用来测试连通性) [root@localhost ~]# ansible all -m ping 192.168...原创 2019-05-09 12:14:09 · 136 阅读 · 0 评论