下载网站:http://releases.ansible.com/ansible/
中文网站:http://www.ansible.com.cn/docs/
网站:http://docs.ansible.com/ansible/index.html
epel源:http://fedoraproject.org/wiki/EPEL
yuminstallepel*
yuminstallansible
控制端:
vim/etc/ansible/hosts
[ALL]
192..
分类:
其他好文 时间:
2017-08-22 00:25:38
阅读次数:
121
一.升级python 作者系统为centos6.5,系统默认安装python2.6,虽然ansible官方文档要求python版本为2.6或2.7,然而许多人都说使用2.6可能出现一系列问题,所以作者决定将2.6升级为2.7以避免不必要的麻烦。 python下载地址:https://www.pyth ...
分类:
其他好文 时间:
2017-08-21 17:49:00
阅读次数:
184
WestartwithinstallingAnsibleusingroot.step1-run"yuminstallansible"toinstallitononemachinewithCenOS7;step2-configuringansiblehostsOpenthefile/etc/ansible/hosts,inthisfile,add:[servers]
host1ansible_ssh_host=user_name@server_ip
host2ansible_ssh_host=user_name..
分类:
其他好文 时间:
2017-08-08 12:35:54
阅读次数:
167
前提: 1、已配置好hosts文件且免密码登录 2、需要的yaml文件已上传到主控端 一、使用Ansible安装nginx 1、nginx.yaml文件 2、nginx.conf文件 3、www.conf文件 4、nginx.repo文件 ...
分类:
数据库 时间:
2017-08-02 13:12:43
阅读次数:
202
ansible管理机:192.168.8.35名称:kicktomcat主机:192.168.8.234,192.168.8.235VIP:192.168.8.100系统版本:Centos7.2#####实验软件下载地址配置文件:http://pan.baidu.com/s/1eSou1BsNFS:http://pan.baidu.com/s/1kVieBgNDRBD:http://pan.baidu.com/s/1nvkIxtR#########下..
分类:
其他好文 时间:
2017-06-27 13:45:52
阅读次数:
288
一、安装 注意:强烈建议升级python版本到2.6以上,不然运行会出错或者有些功能会没有,在编译安装其他包的时候也会因为兼容问题报错。 (1)、python2.7安装 ## 将python头文件拷贝到标准目录,以避免编译ansible时,找不到所需的头文件 ## 备份旧版本的python,并符号链 ...
分类:
其他好文 时间:
2017-06-21 14:13:08
阅读次数:
201
一 需要安装些什么 Ansible默认通过 SSH 协议管理机器. 安装Ansible之后,不需要启动或运行一个后台进程,或是添加一个数据库.只要在一台电脑(可以是一台笔记本)上安装好,就可以通过这台电脑管理一组远程的机器.在远程被管理的机器上,不需要安装运行任何软件,因此升级Ansible版本不会 ...
分类:
其他好文 时间:
2017-06-05 22:04:38
阅读次数:
171
这个主要是给hbase用的,启动用户为hadoopcatiphost.txt
n16172.x.x.1
d17172.x.x.2
d18172.x.x.3
cd/etc/ansible/shell
catiphost.py
#!/usr/bin/python
#coding:utf-8
importsys
try:
importjson
exceptImportError:
importsimplejsonasjson
defgrouplist():
inventory={}..
分类:
其他好文 时间:
2017-05-17 15:24:41
阅读次数:
321
假如你要在一台机器安装多个tomcat或者安装多台tomcat,你可以选择假设现在tomcat有三个,分别为cxx,wxx,sxx多建立对应的yml文件,一个项目一个copy.yml,install.yml,delete.yml分别一个我选择第二种方法,变量可以定义在一个文件中借用ansible生成动态的hosts优势#!/usr/bin/p..
分类:
其他好文 时间:
2017-05-13 09:56:48
阅读次数:
210
ansible是python开发的一款自动化运维工具,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量配置系统、批量部署程序、批量运行命令等功能。ansible是基于模块工作的,本身没有批量操作系统的能力。真正去安装批量工作的是ansible所运行的模块,..
分类:
其他好文 时间:
2017-05-03 01:10:18
阅读次数:
227