roles用于层次性、结构化地组织playbook。roles能够根据层次型结构自动装载变量文件、tasks以及handlers等。要使用roles只需要在playbook中使用include指令即可。简单来讲,roles就是通过分别将变量(vars)、文件(file)、任务(tasks)、模块(modules)及处理器(handlers)放置于单..
                            
                            
                                分类:
其他好文   时间:
2016-03-03 19:39:26   
                                阅读次数:
246
                             
                         
                    
                        
                            
                            
                                AnsiableAnsiable的核心组件AnsiblecoreHostinventoryCoremodulesCustommodulesPlaybooks(yaml.jinjia2)ConnectpluginAnsible特性基于python语言实现,由paramike,pyyaml和jinjia2三个关键模块组成部署简单,agentless默认使用ssh协议主从模式,Master:ansble.sshclientSlave:s..
                            
                            
                                分类:
其他好文   时间:
2016-03-03 15:10:02   
                                阅读次数:
307
                             
                         
                    
                        
                            
                            
                                puppet chef ansible salt docker https://github.com/ansible/ansiblehttps://github.com/saltstack/salthttps://github.com/chef/chefhttps://github.com/pupp
                            
                            
                                分类:
其他好文   时间:
2016-03-01 20:32:25   
                                阅读次数:
161
                             
                         
                    
                        
                            
                            
                                1、playbook介绍:简单的说就是定义一个配置文件,文件中写入你需要安装的服务,配置文件,变量等信息,使他们可以按照事先定义好的机制完成一个任务。Playbook使用YAML语法结构,所以配置阅读起来都比较简单。2、playbook的组成结构:targetsection定义将要执行playbook的远程..
                            
                            
                                分类:
其他好文   时间:
2016-03-01 19:17:24   
                                阅读次数:
251
                             
                         
                    
                        
                            
                            
                                ansible模块yum:[root@node1~]#ansible-doc-syum
less436
Copyright(C)1984-2009MarkNudelman
lesscomeswithNOWARRANTY,totheextentpermittedbylaw.
Forinformationaboutthetermsofredistribution,
seethefilenamedREADMEinthelessdistribution.
Homepage:http://www.greenwo..
                            
                            
                                分类:
其他好文   时间:
2016-02-29 20:11:04   
                                阅读次数:
1064
                             
                         
                    
                        
                            
                            
                                Ansible特点不需要安装客户端,通过sshd去通信基于模块工作,模块可以由任何语言开发不仅支持命令行使用模块,也支持编写yaml格式的playbook支持sudo有提供ui(浏览器图形化)www.ansible.com/tower10台主机以内免费开源uihttps://github.com/alaxli/amsible_ui文档http://do..
                            
                            
                                分类:
其他好文   时间:
2016-02-25 21:26:49   
                                阅读次数:
835
                             
                         
                    
                        
                            
                            
                                环境:ansible端:ip:192.168.100.129hostname:node1.lansgg.comclient端:ip:192.168.100.131hostname:v2.lansgg.comip:192.168.100.132hostname:v3.lansgg.com[root@node1ansible]#pwd
/etc/ansible
[root@node1ansible]#cathosts
[testservers]
192.168.100.131
192.1..
                            
                            
                                分类:
系统相关   时间:
2016-02-25 17:10:48   
                                阅读次数:
1425
                             
                         
                    
                        
                            
                            
                                查询模块的参数:ansible-doc-smoduleName如cron模块[root@node1ansible]#ansible-doc-scron
less436
Copyright(C)1984-2009MarkNudelman
lesscomeswithNOWARRANTY,totheextentpermittedbylaw.
Forinformationaboutthetermsofredistribution,
seethefilenamedREADMEinthelessd..
                            
                            
                                分类:
其他好文   时间:
2016-02-25 17:08:54   
                                阅读次数:
372
                             
                         
                    
                        
                            
                            
                                ansible核心组件介绍ArchitectureDiagramansiblecorehostiventorycoremodulescustommodulesplaybook(yaml)connetcpluginansibles的特性基于python语言实现,有paramiko,Pyyaml和jinjia2三个关键模块部署简单,agegtlees,默认使用SSH协议基于密钥认证在inventory文件中指定账号..
                            
                            
                                分类:
其他好文   时间:
2016-02-25 12:06:16   
                                阅读次数:
3039
                             
                         
                    
                        
                            
                            
                                1、ansible的配置文件[root@vmansible]#rpm-qlansible|grepetc
/etc/ansible
/etc/ansible/ansible.cfg
/etc/ansible/hosts
/etc/ansible/rolesansible.cfg文件可以设定一些默认值,这样我们就不需要对同样的内容输入很多遍。我应该把ansible.cfg文件放到哪里呢Ansible按照如下..
                            
                            
                                分类:
其他好文   时间:
2016-02-24 17:44:59   
                                阅读次数:
263