1.

What is a YAML file and how do we use it in Ansible?

Answer»

YAML or files are LIKE any formatted text file with few sets of RULES just like JSON or XML. Ansible uses this syntax for playbooks as it is more readable than other formats.
An example of JSON vs YAML is:

{ "object": {"key": "VALUE","array": [ { "null_value": null }, { "boolean": true }, { "integer": 1 }, { "alias": "aliases are like VARIABLES" }] }}---object: key: value array: - null_value: - boolean: true - integer: 1 - alias: aliases are like variables


Discussion

No Comment Found