Ansible Tower 2.3.1 inventory limiting for job templates

281 views
Skip to first unread message

Nicholas McKinney

unread,
Dec 1, 2015, 9:48:52 PM12/1/15
to Ansible Project
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:


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.

Brian Coca

unread,
Dec 1, 2015, 9:51:07 PM12/1/15
to Ansible Project
for ansible tower questions post at http://support.ansible.com or
email sup...@ansible.com
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d15e100b-dd7b-43a3-baa8-0ccd9437dc9e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages