# Groups in Tower

**URL:** <https://forum.ansible.com/t/groups-in-tower/29591>\
**Category:** AWX Project\
**Created:** [February 1, 2019, 12:46pm UTC](https://forum.ansible.com/t/groups-in-tower/29591 "2019-02-01T12:46:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spiro\_Mitsialis](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Post date:** [February 1, 2019, 12:46pm UTC](https://forum.ansible.com/t/groups-in-tower/29591/1 "2019-02-01T12:46:20Z")

</div>

Hi,  
When I’m running Ansible Engine (CLI), I can have multiple groups in the inventory file.  
[switch]  
…  
[router]  
…  
Each of these groups uses different credentials. In CLI, I can have a different variable file under group\_vars (different passwords). I can then run playbooks that work on both switches and routers.

Is this possible in Tower. I found that I can put devices into groups under inventory but the credentials are assigned at the job template level and I have to choose which credentials file to use. I have one for switch and one for router. Right now I have 2 job templates, one for switch and one for router. Is there a way to combine them into one template?  
Thanks

---

<div class="post-metadata">

**Author:** ![Foley\_John](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Foley\_John](https://forum.ansible.com/u/Foley_John)\
**Post date:** [February 1, 2019, 12:49pm UTC](https://forum.ansible.com/t/groups-in-tower/29591/2 "2019-02-01T12:49:00Z")

</div>

On the template just leave the credentials blank and have it set to prompt.

**John M. Foley**

**IT Specialist**

**LOC**

---

<div class="post-metadata">

**Author:** ![Spiro\_Mitsialis](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Post date:** [February 1, 2019, 2:38pm UTC](https://forum.ansible.com/t/groups-in-tower/29591/3 "2019-02-01T14:38:44Z")

</div>

John,  
I dont want to have to enter credentials each time. I would schedule the jobs and would want it to run on its own.Is there a way to add a variable to the “group” that points to the right credential file?

Spiro

---

<div class="post-metadata">

**Author:** ![Juan\_A\_S](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Post date:** [February 1, 2019, 6:25pm UTC](https://forum.ansible.com/t/groups-in-tower/29591/4 "2019-02-01T18:25:22Z")

</div>

For now, this is not possible, according to this thread: [https://groups.google.com/forum/?utm\_medium=email&utm\_source=footer#!topic/awx-project/h8Ftu3pGcEI](https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/awx-project/h8Ftu3pGcEI)
