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.
#########################################################################

Where is this going wrong? Neither the playbook, nor the inventory has 26/27 
columns in line 1

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/542832406.222004.1690359566602%40office.mailbox.org.

Reply via email to