YAML or "Ain’t markup language” ( ansible )



YAMLexplained

YAML is commonly used in configuration files for applications, data exchange between different programming languages,

and in scenarios where human readability is a priority.

Its simplicity and readability make it popular in various contexts, including configuration management tools, continuous integration pipelines, and more.



formatorhttps://jsonformatter.org/yaml-formatter
convertor

https://json2yaml.com/

https://jsonformatter.org/json-to-yaml




    

Variable:  key:value pair         key1:value1


value list 

key: [ 'value1' , 'value2' ] 

or

key:

    - value1
    - value2

object

group of key:value pair

object1:
      key1: value1
      key2: value2

complex list

list of key:value pairs or objects

clist:  { key1: value1, key2: value2 }


clist:
    object1:
        key1: value1
        key2: value2
   object2:
        key1: value1
        key2: value2




   


        

https://www.tutorialspoint.com/yaml/index.htm


Data serialization language which is designed to be human -friendly and works well with other programming languages for everyday tasks.


Very good tutorial:

Example: