# Ansible Tower 2.3.1 inventory limiting for job templates

**URL:** <https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914>\
**Category:** Ansible Project\
**Created:** [December 2, 2015, 12:31am UTC](https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914 "2015-12-02T00:31:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_McKinney](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@Nicholas\_McKinney](https://forum.ansible.com/u/Nicholas_McKinney)\
**Post date:** [December 2, 2015, 12:31am UTC](https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914/1 "2015-12-02T00:31:37Z")

</div>

I’m trying to limit job runs to specific machines. The Ansible inventory in Tower has the concept of groups within groups, which is convenient, but I cannot find out how to use that in the “Limit” field during job template creation to do something more specific than choosing top-level groups. To be clear, I do not want to use multiple groups. Instead, I want to select a very specific group of machines that exist within the scope of a larger group governing the environment of an application. I saw a presentation with a neat trick at the recent Ansible conference in SF, and want to try to apply it to my work.

I essentially want to apply limiting for an inventory structure as shown in:

[http://docs.ansible.com/ansible/intro\_inventory.html#groups-of-groups-and-group-variables](http://docs.ansible.com/ansible/intro_inventory.html#groups-of-groups-and-group-variables)

I’d like to be able to limit a job template run to a pattern like: App → Specific purpose. It would be better if inventories could be chosen at run-time so that I won’t end up with templates prefixed by their targeted environment, but I guess that is a gripe for another day.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 2, 2015, 2:50am UTC](https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914/2 "2015-12-02T02:50:56Z")

</div>

for ansible tower questions post at [http://support.ansible.com](http://support.ansible.com) or  
email support@ansible.com
