# Instance group precedence

**URL:** <https://forum.ansible.com/t/instance-group-precedence/29572>\
**Category:** Ansible Project\
**Created:** [January 30, 2019, 4:04pm UTC](https://forum.ansible.com/t/instance-group-precedence/29572 "2019-01-30T16:04:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sindhuja\_Koneru](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Post date:** [January 30, 2019, 4:04pm UTC](https://forum.ansible.com/t/instance-group-precedence/29572/1 "2019-01-30T16:04:57Z")

</div>

Ansible docs say instance group selected in template has higher precedence than instance group in inventory.  
Instance group in inventory has hugest precedence than instance group in organization.

Template \> Inventory \> Organisation.

If 1 organization has 3 different instance groups and have not selected any instance group under template/inventory.

On what factors will ansible decide on which instance group my job gets executed on..???
