ansible yaml 语法

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

猜你喜欢

转载自www.cnblogs.com/hixiaowei/p/9276970.html