# YAML Syntax Error

**URL:** <https://forum.ansible.com/t/yaml-syntax-error/20856>\
**Category:** Ansible Project\
**Created:** [March 14, 2016, 7:29am UTC](https://forum.ansible.com/t/yaml-syntax-error/20856 "2016-03-14T07:29:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Altug\_Tekin](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Altug\_Tekin](https://forum.ansible.com/u/Altug_Tekin)\
**Post date:** [March 14, 2016, 7:29am UTC](https://forum.ansible.com/t/yaml-syntax-error/20856/1 "2016-03-14T07:29:05Z")

</div>

Before I start banging my keyboard into the window, I wanted to ask why this task produces a Syntax Error:

`

- name “cat /etc/shinken/modules/webui.cfg | grep ‘modules auth-cfg-password’”  
shell: runuser -l shinken -c “cat /etc/shinken/modules/webui.cfg | grep ‘modules auth-cfg-password’ || true”  
ignore\_errors: true  
register: is\_authmodule\_in\_webui\_config

`

I dont understand the error because:

- I use double-quotes which surround the single quotes
- the command does what it should do when run in the shell  
The error is:

`

ERROR: Syntax Error while loading YAML script, config-shinken.yml  
Note: The error may actually appear before this position: line 63, column 7  
shell: “cat /etc/shinken/modules/webui.cfg | grep ‘modules auth-cfg-password’ || true”

`

Help me please.

---

<div class="post-metadata">

**Author:** ![Josh\_Smift1](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Post date:** [March 14, 2016, 2:35pm UTC](https://forum.ansible.com/t/yaml-syntax-error/20856/2 "2016-03-14T14:35:57Z")

</div>

> Before I start banging my keyboard into the window, I wanted to ask  
> why this task produces a Syntax Error:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;- name "cat /etc/shinken/modules/webui.cfg | grep 'modules  
> auth-cfg-password'"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shell: runuser -l shinken -c "cat /etc/shinken/modules/webui.cfg |

I think you're missing a colon after "name" in the first line.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Josh (jbs@care.com)

(apologies for the automatic corporate disclaimer that follows)

This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.

---

<div class="post-metadata">

**Author:** ![Altug\_Tekin](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Altug\_Tekin](https://forum.ansible.com/u/Altug_Tekin)\
**Post date:** [March 14, 2016, 4:32pm UTC](https://forum.ansible.com/t/yaml-syntax-error/20856/3 "2016-03-14T16:32:36Z")

</div>

Yes that was it. Thank you. I found it 10 Minutes after writing the Mail.
