# Assign to a variable a string with the same name as the variable name does not work (i.e: var1="var1"   does not work)

**URL:** <https://forum.ansible.com/t/assign-to-a-variable-a-string-with-the-same-name-as-the-variable-name-does-not-work-i-e-var1-var1-does-not-work/21236>\
**Category:** Ansible Project\
**Created:** [April 21, 2016, 6:37pm UTC](https://forum.ansible.com/t/assign-to-a-variable-a-string-with-the-same-name-as-the-variable-name-does-not-work-i-e-var1-var1-does-not-work/21236 "2016-04-21T18:37:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moshe\_Suberri](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Moshe\_Suberri](https://forum.ansible.com/u/Moshe_Suberri)\
**Post date:** [April 21, 2016, 6:37pm UTC](https://forum.ansible.com/t/assign-to-a-variable-a-string-with-the-same-name-as-the-variable-name-does-not-work-i-e-var1-var1-does-not-work/21236/1 "2016-04-21T18:37:41Z")

</div>

playbook file  
:  
#var-test.yml
