# Implicit localhost won't load host\_vars/localhost/\*.yml

**URL:** <https://forum.ansible.com/t/implicit-localhost-wont-load-host-vars-localhost-yml/16989>\
**Category:** Ansible Project\
**Created:** [December 8, 2014, 10:18pm UTC](https://forum.ansible.com/t/implicit-localhost-wont-load-host-vars-localhost-yml/16989 "2014-12-08T22:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Capi\_Etheriel](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Capi\_Etheriel](https://forum.ansible.com/u/Capi_Etheriel)\
**Post date:** [December 8, 2014, 10:18pm UTC](https://forum.ansible.com/t/implicit-localhost-wont-load-host-vars-localhost-yml/16989/1 "2014-12-08T22:18:38Z")

</div>

I’d expect implicit localhost to behave just like any other host when it comes to loading variables from host\_vars.  
But it doesn’t load vars from host\_vars/localhost.yml nor host\_vars/localhost/somefile.yml

Of course, it behaves as expected when it comes to group\_vars (it loads group\_vars/\* but no other group).

I’m coming from [https://github.com/ansible/ansible/issues/9750](https://github.com/ansible/ansible/issues/9750) where I’ve added a link to a commit from @sivel that solves the issue.  
[https://github.com/sivel/ansible/compare/ansible:devel...sivel:implicit-localhost-hostvars](https://github.com/sivel/ansible/compare/ansible:devel...sivel:implicit-localhost-hostvars)
