https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
2 or 4 space key for indent.
/n in the end for new string in big text, plus indent.
Sample YAML file Sample.yml
---
# Comment about workers
- worker1:
- python
- perl
- pascal
- worker2:
Name: Martin
Job: Developer
Skills:
- lisp
- fortran
- worker3: {Name: Tabitha, Job: Developer, Skills: ['erlang', 'python']}
...
sample1: "
1. First string/n
2. Second string"
sample2: |
1. First string
2. Second string"
| = /n, |+ = /n/n, |- = 0
Link:
Name: &link Bob
Link2:
Name: *link
yamllint it is the YAML validator.
sudo apt install yamllint #For installation
yamllint Sample.yml #For checking