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.