码迷,mamicode.com
首页 >  
搜索关键字:action item    ( 28673个结果
ansible进阶循环
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:其他好文   时间:2020-09-17 17:20:16    阅读次数:39
ansible的循环二
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:其他好文   时间:2020-09-17 17:19:57    阅读次数:31
ansible循环四
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:其他好文   时间:2020-09-17 17:19:41    阅读次数:32
ansible循环四
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:其他好文   时间:2020-09-17 17:19:20    阅读次数:33
Python高级特性
一、切片 (1)正常切片 L[0:3] L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。 如果第一个索引是0,还可以省略。 L[:3] (2)倒数切片 L[-2:] (3)每几个选一个 L[:10:2] #前10个数,每两个取一个 (4)tuple ...
分类:编程语言   时间:2020-09-17 17:09:30    阅读次数:24
离线电商数仓(六十四)之集群监控(四)Zabbix(四)使用
1 Zabbix术语 1.1 Host(主机) 一台你想监控的网络设备,用IP或域名表示。 1.2 Item(监控项) 你想要接收的主机的特定数据,一个度量数据。 1.3 Trigger(触发器) 一个被用于定义问题阈值和“评估”监控项接收到的数据的逻辑表达式。 1.4 Action(动作) 一个对 ...
分类:其他好文   时间:2020-09-17 16:20:20    阅读次数:28
嵌套列表的格式打印
names = ['A','B','C',['D','E'],['F']] def print_lol(the_list,indent=False,level=0): # for each_item in the_list: if isinstance(each_item,list): print_ ...
分类:其他好文   时间:2020-09-17 16:13:35    阅读次数:26
Vue Axios fetchJsonp请求数据
app.vue <template> <div id="app"> <v-home></v-home> </div> </template> <script> import Home from './components/Home.vue'; export default { data () { r ...
分类:移动开发   时间:2020-09-17 15:45:01    阅读次数:33
ASP.Net MVC Action
Action方法输出返回值:ActionResult,返回控制器结果对象,慧姐或间接继承自ActionResult类型 ViewResult:使用View() 既可以指定一个页面,也可以指定传递的模型对象,如果没有指定参数表示返回与Action同名的页。 ContentResult:使用Conten ...
分类:Web程序   时间:2020-09-17 14:18:46    阅读次数:30
Shell编程四剑客包括:find、sed、grep、awk
一、Shell编程四剑客之Find Find工具主要用于操作系统文件、目录的查找,其语法参数格式为: find path -option [ -print ] [ -exec -ok command ] { } \; 其option常用参数详解如下: -name filename #查找名为file ...
分类:系统相关   时间:2020-09-17 13:14:45    阅读次数:44
28673条   上一页 1 ... 48 49 50 51 52 ... 2868 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!