For Ansible 2.8 invalid group names are ignored, but they should be made valid. That is to say that group names should not include the hyphen (-) character. Underscore (_) is valid.
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#transform-invalid-group-chars