Talk:Ansible: Difference between revisions

Line 107:
name: vsftpd
state: latest
</pre>
 
= YAML =
* YAML(YAML Ain't Markup Language) structures are represented by indentation.
* Data elements at same hierarchy level should be at same indentation level.
* Do not use Tabs for indentation.
* It is common but not mandatory to start YAML file with 3 dashes & end it with 3 dots.
* This allows YAML code to be placed in some other code.
 
<pre>
---
# example playbook
item1:
parameter1
parameter2
option1
option2
item2
parameter3
...
</pre>