# Ansible 1.5.4 breaks variables in vars\_files

**URL:** <https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936>\
**Category:** Ansible Project\
**Created:** [April 4, 2014, 8:43am UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936 "2014-04-04T08:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Post date:** [April 4, 2014, 8:43am UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936/1 "2014-04-04T08:43:21Z")

</div>

I have a playbook with the following:

vars\_files:

- “vars/{{ ansible\_pkg\_mgr }}.yml”

… that works fine in 1.5.3, but 1.5.4 doesn’t appear to be able to find it; when one of the variables that should have been imported is referenced, it throws a ‘foo is undefined’ error.

I can provide a minimal reproduction if it’d be helpful.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [April 4, 2014, 1:34pm UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936/2 "2014-04-04T13:34:32Z")

</div>

This issue was reported the other day and has been fixed in the devel branch:

[https://github.com/ansible/ansible/issues/6832](https://github.com/ansible/ansible/issues/6832)

You can grab that patch for now if you’d like ([https://github.com/ansible/ansible/commit/9c6dd9f79c6fbed3346b951fc280f30cb6d676ae](https://github.com/ansible/ansible/commit/9c6dd9f79c6fbed3346b951fc280f30cb6d676ae)), which will be included in the next release.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [April 4, 2014, 3:23pm UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936/3 "2014-04-04T15:23:13Z")

</div>

It’s not variables, rather, just facts.

But yes, fixed on the development branch.

We do not plan for a 1.5.4 update release at this time seeing 1.6 is due for towards the end of the month. This _may_ change, but I’m thinking probably it will not, since there’s a workaround posted in the ticket link above.

---

<div class="post-metadata">

**Author:** ![Mark\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Post date:** [April 4, 2014, 11:32pm UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936/4 "2014-04-04T23:32:58Z")

</div>

I’ll just stick on 1.5.3 until 1.6.

Thanks!
