码迷,mamicode.com
首页 >  
搜索关键字:ansible 安装和测试    ( 2484个结果
ansible-puppet-saltstack---ITAMS
ansible http://www.cnblogs.com/ee900222/p/ansible.html http://ju.outofmemory.cn/entry/67581 ansible vs puppet vs saltstack ansible http://www.cnblogs. ...
分类:其他好文   时间:2017-03-19 13:05:33    阅读次数:135
Win Server 2012 R2 WSUS 无法识别 Win Server 2016 & Win10的解决办法
各位好,今天给大家分享一个我遇到的问题。相信微软在推出了WindowsServer2016和Win10操作系统之后,有很多同学都第一时间进行了安装和测试,想第一时间感受一下全新的系统平台带来的新体验。但是不知道有没有同学发现,如果我们在域环境中搭建了Server2016或者Win10的机器,域..
分类:Windows程序   时间:2017-03-17 21:29:40    阅读次数:8496
自动化安装ansible脚本
#!/bin/bash#justpreventyouhavesshkeyrm-rf/root/.ssh/id_dsa*ssh-keygen-tdsa-f/root/.ssh/id_dsa-P"">>/dev/null2>&1#allcanssheachotherforipin$*do sshpass-p123456ssh-copy-id-i/root/.ssh/id_dsa.pub"-oStrictHostKeyChecking=noroot@$ip">>/dev/nul..
分类:其他好文   时间:2017-03-17 21:12:32    阅读次数:279
centos7.2 pip安装ansible
相对yum安装,pip安装的好处是jinjia版本到了2.8 pip安装ansible Successfully installed MarkupSafe-1.0 PyYAML-3.12 ansible-2.2.1.0 jinja2-2.8.1 paramiko-2.1.2 pyasn1-0.2.3... ...
分类:其他好文   时间:2017-03-17 17:37:56    阅读次数:260
error while loading shared libraries: libtinfo.so.5
想通过ansible在管理的各数据库服务器执行操作数据库的一个shell脚本,跑脚本的时候发现部分服务器能执行成功,部分服务器失败了,报错信息为errorwhileloadingsharedlibraries:libtinfo.so.5。经过对比,发现执行失败的服务器为centos5的系统。其实系统已经装过ncurses包了,..
分类:其他好文   时间:2017-03-16 22:24:37    阅读次数:251
python获取服务器信息
python通过ansible获取服务器基本信息:#!/usr/bin/envpython #coding:utf-8 defsever_info(ip) cmd="/usr/bin/ansible{ip}-msetup".format(ip=ip) raw_info=subprocess.check_output(cmd,shell=True) base_info=json.loads(raw_info.split(‘=>‘)[1])[‘ansible_facts‘] cpu..
分类:编程语言   时间:2017-03-15 12:53:43    阅读次数:223
ansible 普通用户执行命令
首先需要了解ssh普通用户登陆的做法:1.普通用户ssh免密登陆举个例子:[A@source~]$sshuser@10.0.0.1表示当前用户A(可以是root或者任何其他用户)以用户user登陆10.0.0.1,如果省略用户,即:ssh10.0.0.1,表示以当前用户A登陆这里记住两个用户:A:当前用户,执行ssh的用户user..
分类:其他好文   时间:2017-03-14 21:44:00    阅读次数:484
Django 检查数据备份结果
目的:利用ansible获取后端服务器数据每天备份结果平台:Django1.views.py中添加函数defbackup_status(request): arg_mysql="du-sh/backup/mysql/db/`date-I`" arg_mongo="du-sh/backup/mongodb/`date-I`" arg_data=‘tail-n3/var/log/rsync_data.`date+"%Y%m%d2301"-d"-1day"`‘..
分类:其他好文   时间:2017-03-14 21:39:31    阅读次数:204
ansible 部署 zabbix客户端 脚本
[root@CASupport1~]#treeansible ansible ├──get-pip.py ├──hosts ├──roles │└──zabbix │├──default │├──files ││├──tcp_status.conf ││├──tcp_status.log ││└──tcp_status.sh │├──handlers │├──meta │├──tasks ││└──mai..
分类:其他好文   时间:2017-03-14 21:27:20    阅读次数:177
centos7离线安装ansible
centos7离线安装ansible:1、通过在线的centos7将rpm包下载好了,上传到指定服务器。下载官方repo,rpm-iUvhhttp://dl.Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpmyumdownloaderansibleyumdownloaderpython-keyczaryumdownloaderpython-httplib2yumdow..
分类:其他好文   时间:2017-03-14 14:01:56    阅读次数:924
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!