# group variable precence

**URL:** <https://forum.ansible.com/t/group-variable-precence/25108>\
**Category:** Ansible Project\
**Created:** [July 27, 2017, 2:56pm UTC](https://forum.ansible.com/t/group-variable-precence/25108 "2017-07-27T14:56:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hudec\_Peter](https://avatars.discourse-cdn.com/v4/letter/h/a87d85/32.png) [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Post date:** [July 27, 2017, 2:56pm UTC](https://forum.ansible.com/t/group-variable-precence/25108/1 "2017-07-27T14:56:57Z")

</div>

Hi,

my gruestion is about the group varilabes, when the host is in more  
groups and there are same variable keys. See next example

### INVENTORY  
[cm]  
ditlcm01 ansible\_ssh\_host=192.168.93.101 ansible\_ssh\_user=root  
ditlcm05 ansible\_ssh\_host=192.168.93.105 ansible\_ssh\_user=root

[debian]  
ditlcm01

[centos]  
ditlcm06

### GROUP VARS  
group\_vars/cm.yml: test\_var: cm  
group\_vars/debian.yml: test\_var: debian  
group\_vars/centos.yml: test\_var: centos

### PLAYBOOK
