# group intersection not working in some situations

**URL:** <https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837>\
**Category:** Ansible Project\
**Created:** [August 1, 2014, 10:34pm UTC](https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837 "2014-08-01T22:34:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guanwen](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@guanwen](https://forum.ansible.com/u/guanwen)\
**Post date:** [August 1, 2014, 10:34pm UTC](https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837/1 "2014-08-01T22:34:27Z")

</div>

Let me assume that we have a inventory file called hosts:

hosts  
[openstack]  
keystonec  
sproxyc  
snode01c  
snode02c  
snode03c  
keystone  
sproxy  
snode01  
snode02  
snode03

and a dev inventory file

[dev]  
keystone  
sproxy  
snode01  
snode02  
snode03

I have a test.yml file

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 1, 2014, 10:43pm UTC](https://forum.ansible.com/t/group-intersection-not-working-in-some-situations/15837/2 "2014-08-01T22:43:38Z")

</div>

Can you try this on the development branch?

We’ve recently applied some patches to clean up inventory that should address this problem when using multiple inventory files at once.

1.7 is due for release soon, so it’s pretty much set to go.
