# Syntax Error while loading YAML.

**URL:** <https://forum.ansible.com/t/syntax-error-while-loading-yaml/23838>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [February 28, 2017, 5:59am UTC](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23838 "2017-02-28T05:59:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pankaj\_Navneet](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Pankaj\_Navneet](https://forum.ansible.com/u/Pankaj_Navneet)\
**Post date:** [February 28, 2017, 5:59am UTC](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23838/1 "2017-02-28T05:59:39Z")

</div>

Hi ,

I have written a YAML to install on my AWS Slave server, but i am getting below error while running the playbook,

**ERROR! Syntax Error while loading YAML.**

**The error appears to have been in ‘/etc/ansible/install\_nginx.yml’: line 3, column 1, but may**  
**be elsewhere in the file depending on the exact syntax problem.**

**The offending line appears to be:**

**tasks:**  
**- name: nginx**  
**^ here**
