# vars /etc/ansible/hosts

**URL:** <https://forum.ansible.com/t/vars-etc-ansible-hosts/12591>\
**Category:** Ansible Project\
**Created:** [March 27, 2013, 8:26am UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12591 "2013-03-27T08:26:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmytro\_Polushyn](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@Dmytro\_Polushyn](https://forum.ansible.com/u/Dmytro_Polushyn)\
**Post date:** [March 27, 2013, 8:26am UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12591/1 "2013-03-27T08:26:06Z")

</div>

Michael,  
Thank you for your answer. I have attached the files - [https://gist.github.com/anonymous/5252645](https://gist.github.com/anonymous/5252645)  
Actually, I do not know is this a problem or not.  
But when I do the the following in the inventory file (/etc/ansible/hosts):

[servers]  
10.132.219.68  
10.132.219.60

[servers:vars]  
myuser=11111111111111  
password=123123

[crmweb]  
10.132.219.68

[crmweb:vars]  
myuser=77777777777777777777  
password=123123

Ansible does not see the second value (myuser=77777777777777777777)

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [March 27, 2013, 8:35am UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12591/2 "2013-03-27T08:35:26Z")

</div>

You are defininig the same variable twice, with different values for the server 10.132.219.68 Only one instance of that variable is taken into account.  
So the first instance overrules the second one.
