I use some roles with playbooks which setting up a dozen services across a cluster and use inventory groups to specify hosts for roles.
According to the environment I need to extract an inventory from ENV in playbook. In the common case most of the services aren't necessary, so there is no hosts to add to a corresponding group, but a group must exist.
In case of a static inventory it's pretty easy. But how to define an empty group in a playbook?