Ansible playbook are just like normal file with ".yml" extension. Playbook (.yml) file understand set of define syntax. YAML is easier for humans to read and write than other common data formats like XML or JSON.
http://www.tutorialbyexample.com/2015...
Ref: http://www.ansible.com/home