# Vars defined in host file not getting the value when the value is supplied as extra vars during playbook run

**URL:** <https://forum.ansible.com/t/vars-defined-in-host-file-not-getting-the-value-when-the-value-is-supplied-as-extra-vars-during-playbook-run/22410>\
**Category:** Ansible Project\
**Created:** [August 29, 2016, 10:44am UTC](https://forum.ansible.com/t/vars-defined-in-host-file-not-getting-the-value-when-the-value-is-supplied-as-extra-vars-during-playbook-run/22410 "2016-08-29T10:44:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishan\_jain](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Post date:** [August 29, 2016, 10:44am UTC](https://forum.ansible.com/t/vars-defined-in-host-file-not-getting-the-value-when-the-value-is-supplied-as-extra-vars-during-playbook-run/22410/1 "2016-08-29T10:44:05Z")

</div>

My host file looks something like this:

[Group]  
[host.com](http://host.com)

[Group:vars]  
vars="{{src}}/varsFile.yaml

And in my playbook:
