# syntax error with lineinfile

**URL:** <https://forum.ansible.com/t/syntax-error-with-lineinfile/17851>\
**Category:** Ansible Project\
**Created:** [March 26, 2015, 2:50pm UTC](https://forum.ansible.com/t/syntax-error-with-lineinfile/17851 "2015-03-26T14:50:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Thacker](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Post date:** [March 26, 2015, 2:50pm UTC](https://forum.ansible.com/t/syntax-error-with-lineinfile/17851/1 "2015-03-26T14:50:39Z")

</div>

I’m getting an unbalance quote error on this short playbook. I’m not seeing the error

---

<div class="post-metadata">

**Author:** ![Greg\_Andrews](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Greg\_Andrews](https://forum.ansible.com/u/Greg_Andrews)\
**Post date:** [March 27, 2015, 11:47am UTC](https://forum.ansible.com/t/syntax-error-with-lineinfile/17851/2 "2015-03-27T11:47:12Z")

</div>

Could it be the lack of whitespace between '-' and 'name' on that line?

&nbsp;&nbsp;-Greg
