# More Ansible Tower - create an inventory group

**URL:** <https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767>\
**Category:** Ansible Project\
**Created:** [June 14, 2016, 5:30am UTC](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767 "2016-06-14T05:30:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Mooshammer](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Post date:** [June 14, 2016, 5:30am UTC](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767/1 "2016-06-14T05:30:01Z")

</div>

Hello,

Is there a way to create a new inventory group other than through the UI?

thanks

Peter

---

<div class="post-metadata">

**Author:** ![Abhishek\_R](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@Abhishek\_R](https://forum.ansible.com/u/Abhishek_R)\
**Post date:** [June 15, 2016, 11:58am UTC](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767/2 "2016-06-15T11:58:31Z")

</div>

You can create run-time, in-memory, ad-hoc groups using the group-by module in a playbook - [http://docs.ansible.com/ansible/group\_by\_module.html](http://docs.ansible.com/ansible/group_by_module.html).

Though this wouldn’t modify the actual inventory file itself. The groups will be available only during the playbook run itself. Perhaps you can add tasks in the playbook for updating the chosen groups in the inventory file well…

Regards

---

<div class="post-metadata">

**Author:** ![Peter\_Mooshammer](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Post date:** [June 15, 2016, 4:49pm UTC](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767/3 "2016-06-15T16:49:36Z")

</div>

Hello

thanks for the reply,

I knew about the in-memory thing. It seems like I need to do something with the tower-cli in order to create a inventory.

Peter
