inventory works ad-hoc but not for playbooks

i have an inventory vm-414001-0315.ini that looks like this

   [vm-414001-0315]
   vm-414001-0315.step.zrz.dvz.cn-mv.de

this works wit ad-hoc commands but throws an error with ansible-playbook

#########################################################################anplay -i ../temp/vm-414001-0315.ini pg_install.yml -e '{"postgresversion":"12.12";"targets":"vm-414001-0315"}' --list-hosts

[WARNING]: * Failed to parse /home/gwagner/repos/automation_postgres/temp/vm-414001-0315.ini with ini plugin: We were unable to read either
as JSON nor YAML, these are the errors we got from each: JSON: Expecting ',' delimiter: line 1 column 27 (char 26) Syntax Error while
loading YAML. found unexpected ':' The error appears to be in '<string>': line 1, column 37, but may be elsewhere in the file depending
on the exact syntax problem.
[WARNING]: Unable to parse /home/gwagner/repos/automation_postgres/temp/vm-414001-0315.ini as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting ',' delimiter: line 1 column 27 (char 26)

Syntax Error while loading YAML.
  found unexpected ':'

The error appears to be in '<string>': line 1, column 37, but may
be elsewhere in the file depending on the exact syntax problem.

sorry, the command I am calling this with was not correct (copy'n'paste error):

ansible-playbook -i ../temp/vm-414001-0315.ini pg_install.yml -e '{"postgresversion":"12.12";"targets":"vm-414001-0315"}' --list-hosts

I think the following error: Expecting ‘,’ delimiter: line 1 column 27 (char 26)

Is pointing you towards your extra vars: ‘{“postgresversion”:“12.12”;“targets”:“vm-414001-0315”}’

You have a semi-colon ‘;’ at position 28, that should be a comma. ‘,’

yes, exactly, semicolon in my command is the culprit. Thanks

another comment on the side

group name in the inventory ideally would not contain ‘-’ characters. This does not produce a FATAL but at least ansible is not all to happy with it

so this: