# Problem referencing defined variables

**URL:** <https://forum.ansible.com/t/problem-referencing-defined-variables/25543>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [September 20, 2017, 12:18pm UTC](https://forum.ansible.com/t/problem-referencing-defined-variables/25543 "2017-09-20T12:18:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zsolt\_Kulcsar](https://avatars.discourse-cdn.com/v4/letter/z/f475e1/32.png) [@Zsolt\_Kulcsar](https://forum.ansible.com/u/Zsolt_Kulcsar)\
**Post date:** [September 20, 2017, 12:18pm UTC](https://forum.ansible.com/t/problem-referencing-defined-variables/25543/1 "2017-09-20T12:18:43Z")

</div>

Dave,  
the double quotes should be around the full value of path. see [http://docs.ansible.com/ansible/latest/YAMLSyntax.html#gotchas](http://docs.ansible.com/ansible/latest/YAMLSyntax.html#gotchas)

- lineinfile:  
path: “/home/{{ new\_user\_acct\_name }}/.ssh/authorized\_keys”

regards, Zsolt
