Add ability to use Ansible groups in generated inventory file.  Fixes #2551.