ansible
estarhao
这个作者很懒,什么都没留下…
展开
-
ansible 常用模块介绍
Ad-Hoc 帮助文档: 列出ansible支持的模块: -l:获取列表 -s module_name:获取指定模块的使用信息 看所有模块(A10,华为,docker,EC2,aws等等广大厂商设备) [root@ansible-server ~]# ansible-doc -l 查看模块使用信息,了解其功能: [root@ansible-server ~]# ansible-doc -s yum...原创 2020-05-04 17:16:37 · 193 阅读 · 0 评论 -
ansible配置实例
解析主机 每一台主机都要进行解析 # vim /etc/hosts 192.168.234.101 ansible-server 192.168.234.102 ansible-web2 192.168.234.103 ansible-web3 测试解析是否成功 配置密钥 [root@ansible-server ~]# ssh-keygen Generating public/privat...原创 2020-05-04 15:10:47 · 193 阅读 · 0 评论