# Error while running playbook

**URL:** <https://forum.ansible.com/t/error-while-running-playbook/27427>\
**Category:** Ansible Project\
**Created:** [May 2, 2018, 1:21pm UTC](https://forum.ansible.com/t/error-while-running-playbook/27427 "2018-05-02T13:21:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharambeas17394](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@bharambeas17394](https://forum.ansible.com/u/bharambeas17394)\
**Post date:** [May 2, 2018, 1:21pm UTC](https://forum.ansible.com/t/error-while-running-playbook/27427/1 "2018-05-02T13:21:03Z")

</div>

ERROR! Syntax Error while loading YAML.  
could not find expected ‘:’

The error appears to have been in ‘/home/ansible/LAMP/site.yml’: line 9, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

roles:  
^ here

i am getting this error while running playbook. As beginner i created a ansible playbook to deploy lamp stack for demo purpose.  
Error is about to line indentation i guess but i checked and found it ok.  
this is my site.yml

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 2, 2018, 6:57pm UTC](https://forum.ansible.com/t/error-while-running-playbook/27427/2 "2018-05-02T18:57:25Z")

</div>

This should be a colon not equal sign.
