会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Lin.Wang
云计算领域一枚小运维
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2018年9月1日
ansible配置文件详解
摘要: ansible配置文件配置 配置项介绍 , 配置文件ansible.cfg, 运行playbook时,默认时在yaml文件所在路径寻找,然后再去/etc/ansible/下寻找 [defaults] 定义默认的hosts文件路径,支持相对路径 inventory = ./hosts 定义默认扩展库路
阅读全文
posted @ 2018-09-01 23:25 ishmaelwanglin
阅读(3541)
评论(0)
推荐(0)
2018年7月5日
ansible字符串的处理
摘要: ansible中字符串的处理 from_json json_query join select selectattr map list trim : 使用和python的strip一样, {{ string | trim }} == string.strip() 列表和字典的处理 combine
阅读全文
posted @ 2018-07-05 07:53 ishmaelwanglin
阅读(4854)
评论(0)
推荐(0)
ansible的modules
摘要: 本地存放拉取到的文件路径, 如果flat=yes,则会在该路径下直接存放文件, 如果flat=no,则会在该路径下生成每个服务器的inventoryname的文件夹
阅读全文
posted @ 2018-07-05 07:49 ishmaelwanglin
阅读(267)
评论(0)
推荐(0)
2018年5月30日
ansible中的map
摘要: ansible中的filter: map ,其实是jinja2中的filter ansible中的map和python中的基本上用法相似。 1、value | map('func') : 没有仔细看代码,func可能是只能用jinja2的filter。举例来说, 2、如果func需要多个参数,如替换
阅读全文
posted @ 2018-05-30 15:55 ishmaelwanglin
阅读(2016)
评论(0)
推荐(0)
2018年5月19日
ansible变量
摘要: hostvars:
阅读全文
posted @ 2018-05-19 00:27 ishmaelwanglin
阅读(223)
评论(0)
推荐(0)
2018年5月15日
ansible的delegate_to、connection、和local_action
摘要: 进程间通信模块 delegate_to 、connection 、local_action 使用场景 由于工作需要,经常需要把目标节点获得的信息写入执行节点文件日志。 所以经常用到delegate_to和connection,而local_action写法难看,基本不用。 delegate_to和c
阅读全文
posted @ 2018-05-15 10:32 ishmaelwanglin
阅读(8575)
评论(0)
推荐(0)
2018年5月10日
ansible的logging模块用来写日志
摘要: [root@node-1 library]# cat dolog.py #!/bin/env python ANSIBLE_METADATA = { 'metadata_version': 'alpha', 'status': ['preview'], 'supported_by': 'lin.wang', 'relea...
阅读全文
posted @ 2018-05-10 15:17 ishmaelwanglin
阅读(3319)
评论(0)
推荐(0)
2018年5月8日
ansible的lookup
摘要: lookup路径: /usr/lib/python2.7/site-packages/ansible/plugins/lookup
阅读全文
posted @ 2018-05-08 14:28 ishmaelwanglin
阅读(1345)
评论(0)
推荐(0)
ansible的plugins
摘要: callback插件:路径 /usr/lib/python2.7/site-packages/ansible/plugins 回显输出型(stdout): stderr.py skippy.py selective.py actionable.py debug.py default.py dense
阅读全文
posted @ 2018-05-08 14:13 ishmaelwanglin
阅读(412)
评论(0)
推荐(0)
ansible的tests
摘要: Ansible的tests : 路径 /usr/lib/python2.7/site-packages/ansible/plugins/test core.py file.py mathstuff.py jinjia2 tests 路径/usr/lib/python2.7/site-packages
阅读全文
posted @ 2018-05-08 13:02 ishmaelwanglin
阅读(437)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告