# Vars changed or broken?

**URL:** <https://forum.ansible.com/t/vars-changed-or-broken/11591>\
**Category:** Ansible Project\
**Created:** [May 31, 2012, 12:25pm UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591 "2012-05-31T12:25:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Dimiduk](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tom\_Dimiduk](https://forum.ansible.com/u/Tom_Dimiduk)\
**Post date:** [May 31, 2012, 12:25pm UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591/1 "2012-05-31T12:25:27Z")

</div>

Did a recent commit change or break vars? They don't seem to be  
getting expanded for me anymore. For example:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 31, 2012, 1:36pm UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591/2 "2012-05-31T13:36:15Z")

</div>

Your indentation here looks off. Variable substitution works fine for me.

> Did a recent commit change or break vars? They don’t seem to be  
> getting expanded for me anymore. For example:
> 
> * * *
> 
> - hosts: servers  
> user: root  
> vars:  
> text: hello  
> tasks:
> - name: test  
> action: command touch /home/tdimiduk/$text

> * * *
> 
> Creates a file called $text rather than hello
> 
> Or is there some subtitles about vars I don’t understand?

I subtitle only in French and Esperanto.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 31, 2012, 1:41pm UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591/3 "2012-05-31T13:41:26Z")

</div>

FWIW, your indentation looks better in Google Groups than Sparrow.

Maybe in 0.5/devel, though templates worked fine in my testing.

Devel branch has had a lot of changes recently and needs more testing. Figure it out, patch it and win valuable bonus points 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [June 1, 2012, 2:22am UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591/4 "2012-06-01T02:22:36Z")

</div>

Works completely fine for me on devel.

---

<div class="post-metadata">

**Author:** ![Tom\_Dimiduk](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tom\_Dimiduk](https://forum.ansible.com/u/Tom_Dimiduk)\
**Post date:** [June 1, 2012, 11:58am UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591/5 "2012-06-01T11:58:10Z")

</div>

Works fine for me on devel as well.

I don't know what was wrong before, but I can just switch to devel, there must me more shiney goodness here anyway ;).

Thanks for the help,  
Tom
