How do you validate the Yaml file before Ansible it?

ansible-playbook has a --check-syntax option.

In 1.1, it's a little smarter, and there is a --list-tasks to go along
with --list-hosts.

I think that
ansible-playbook --syntax-check

is the correct command, not

ansible-playbook --check-syntax