More Ansible Tower - create an inventory group

Hello,

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

thanks

Peter

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.

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

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