# Instance Groups

**URL:** <https://forum.ansible.com/t/instance-groups/25833>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 26, 2017, 8:34pm UTC](https://forum.ansible.com/t/instance-groups/25833 "2017-10-26T20:34:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody\_John](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Post date:** [October 26, 2017, 8:34pm UTC](https://forum.ansible.com/t/instance-groups/25833/1 "2017-10-26T20:34:55Z")

</div>

Anybody had any luck creating instance groups in AWX? I’ve tried adjusting my inventory file to something like this:

`

serverA ansible\_connection=local ansible\_python\_interpreter=“/usr/bin/env python”  
serverB ansible\_python\_interpreter=“/usr/bin/env python”  
serverC ansible\_python\_interpreter=“/usr/bin/env python”

[tower]  
serverA  
serverB  
serverC

[instance\_group\_testgroup1]  
serverB  
serverC

[instance\_group\_testgroup1:vars]  
pg\_hostname=serverA

`

Along with some fiddling of the playbook to expose the proper ports for the postgres container, this works great. serverB and serverC are using the database container on serverA (haven’t messed with the rabbitmq container yet so these probably won’t actually _do_ anything yet).

However, I still only see the default “tower” instance group. I was hoping to see a second instance group created: “testgroup1”. Is this not the right place to be defining instance groups?

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 27, 2017, 12:59am UTC](https://forum.ansible.com/t/instance-groups/25833/2 "2017-10-27T00:59:57Z")

</div>

Howdy Cody, instance groups aren’t supported by the existing installer at the moment… but you are in luck! They are supported (mostly) on my feature branch: [https://github.com/ansible/awx/tree/scalable\_clustering](https://github.com/ansible/awx/tree/scalable_clustering)

You’ll have to build your image on your own, and they are only currently supported in the Openshift install (I’m unlikely to support this on the standalone docker install)… you will also have to use the API to associate instances with Instance Groups until the UI portion is built out.
