码迷,mamicode.com
首页 > 其他好文 > 详细

ansible yaml 语法

时间:2018-07-07 13:41:16      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:--   lan   child   标记   数据   ane   语法   other   name   

yet another markup language -- 另外的一种标记语言

yaml 语法:
序列:同一个类型的数据有多个,用"-" 来区分,叫序列
映射:价值对,用":"来表示

经典例子:
name: jame smiths
sex: male
age: 28
spource:
  name: jane smiths
  age: 25
  sex: female
children:
  - name: aaa smiths
    age: 5
    sex: male
  - name: bbb smiths
    age: 2
    sex: female

ansible yaml 语法

标签:--   lan   child   标记   数据   ane   语法   other   name   

原文地址:https://www.cnblogs.com/hixiaowei/p/9276970.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!