Automatically assign to group in management console

User Story

I want to deploy Teamviewer Host to multiple devices using ansible. Furthermore I want the host to be grouped in management console. 

How can I put them automatically in different groups, without creating a host installation file for each group?

What I tried.

I tried the assignment tool and the feature in the host module. But it seems that I can not change the json configuration files, to change the groups, since the filecontent is checked by  a checksum.

And the windows service locks the assignment configuration file, but when the service is not running, the assignment fails.

 

What is the recommended why, to deploy teamviewer to a large number of devices and groups them?