# How can i override variable value only for a host via extra-vars supplied through command line

**URL:** <https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486>\
**Category:** Ansible Project\
**Created:** [September 5, 2016, 10:02am UTC](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486 "2016-09-05T10:02:18Z")\
**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:** [September 5, 2016, 10:02am UTC](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486/1 "2016-09-05T10:02:18Z")

</div>

Suppose i have this var defined in my inventory file:

_[group10_  
_host1_  
_host2_  
_host3_

_[group1:vars]_  
_source=/opt/config/_

And my target hosts are a group of 3 or more servers. Now while invoking the playbook, i would like to override the value of ‘_source_’ variable only for a single host, say host2. Which inbuilt hostvar should i override for this ?
