# Not loading host\_vars

**URL:** <https://forum.ansible.com/t/not-loading-host-vars/15822>\
**Category:** Ansible Project\
**Created:** [July 31, 2014, 4:21pm UTC](https://forum.ansible.com/t/not-loading-host-vars/15822 "2014-07-31T16:21:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Sarrells](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jason\_Sarrells](https://forum.ansible.com/u/Jason_Sarrells)\
**Post date:** [July 31, 2014, 4:21pm UTC](https://forum.ansible.com/t/not-loading-host-vars/15822/1 "2014-07-31T16:21:09Z")

</div>

I cannot get anything in host\_vars to load when running a playbook. I am using Ansible 1.4.3. What am I doing wrong?

~/test.yml

`

---

<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:** [July 31, 2014, 10:42pm UTC](https://forum.ansible.com/t/not-loading-host-vars/15822/2 "2014-07-31T22:42:35Z")

</div>

Well, you’re using a terribly ancient version of Ansible, unrelated to your question.

Upgrade to 1.6.10 first, you’re missing some security fixes and numerous other upgrades.

What you have in the first “host\_vars” should be fine, however.

---

<div class="post-metadata">

**Author:** ![Jason\_Sarrells](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jason\_Sarrells](https://forum.ansible.com/u/Jason_Sarrells)\
**Post date:** [August 4, 2014, 4:32pm UTC](https://forum.ansible.com/t/not-loading-host-vars/15822/3 "2014-08-04T16:32:03Z")

</div>

I finally figured out what I was doing wrong and thought I would share. The host is 10.1.0.241, not “test” (that is the group name). My host\_vars file should be /etc/ansible/host\_vars/10.1.0.241. Once I corrected the file name, everything worked as expected.
