Talk:Ansible: Difference between revisions

Line 116:
* This allows YAML code to be placed in some other code.
 
* Example:
<pre>
---
Line 128 ⟶ 129:
...
</pre>
 
== YAML Contents ==
 
* Dictionary: key/value pair written in key: value notation
* Lists: represent a list of items, enumerated as '''- item'''. Space after - is mandatory.
* Strings can be enclosed in single or double quotes but that is not mandatory.
* In a multi-line string, first line is ended by | or >. Next lines are indented.
* Verify YAML syntax:
ansible-playbook --syntax-check mycode.yaml