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

On Tuesday, June 14, 2016 at 11:00:01 AM UTC+5:30, Peter Mooshammer wrote:
>
> Hello,
>
> Is there a way to create a new inventory group other than through the UI?
>
> thanks
>
> Peter
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/44402a4c-7e73-4e1b-ab86-8d8726f00ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to