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: ############################################ [vm0315] http://vm-414001-0315.step.zrz.dvz.cn-mv.de ############################################ is better then this ############################################ [vm-414001-0315] http://vm-414001-0315.step.zrz.dvz.cn-mv.de ############################################
> On 07/26/2023 11:00 AM CEST dulhaver via Ansible Project > <[email protected]> wrote: > > > yes, exactly, semicolon in my command is the culprit. Thanks > > > > On 07/26/2023 10:47 AM CEST Will McDonald <[email protected]> wrote: > > > > > > 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. ',' > > > > On Wed, 26 Jul 2023 at 09:29, dulhaver via Ansible Project > > <[email protected] mailto:[email protected]> > > wrote: > > > > > 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 > > > > > > > > > > > > > On 07/26/2023 10:19 AM CEST dulhaver via Ansible Project > > > > <[email protected] > > > > mailto:[email protected]> wrote: > > > > > > > > > > > > i have an inventory vm-414001-0315.ini that looks like this > > > > > > > > [vm-414001-0315] > > > > http://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] > > > > mailto:ansible-project%[email protected]. > > > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/ansible-project/542832406.222004.1690359566602%40office.mailbox.org. > > > > > > --- > > > gunnar wagner | fichtestr. 1, 19386 lübz | fon: 0176 7808 9090 > > > > > > -- > > > 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] > > > mailto:ansible-project%[email protected]. > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/67657481.222782.1690360145141%40office.mailbox.org. > > > > > > > > > > > -- > > 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] > > mailto:[email protected]. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/ansible-project/CAKtKohSUuqrtDKOMzRLzH5j8b1V78fiWi2d8-KA_Hi1n_bWszA%40mail.gmail.com > > > > https://groups.google.com/d/msgid/ansible-project/CAKtKohSUuqrtDKOMzRLzH5j8b1V78fiWi2d8-KA_Hi1n_bWszA%40mail.gmail.com?utm_medium=email&utm_source=footer. > > > > --- > > gunnar wagner | fichtestr. 1, 19386 lübz | fon: 0176 7808 9090 > > > > -- > 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] > mailto:[email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/357139888.225911.1690362013477%40office.mailbox.org > > https://groups.google.com/d/msgid/ansible-project/357139888.225911.1690362013477%40office.mailbox.org?utm_medium=email&utm_source=footer. > --- gunnar wagner | fichtestr. 1, 19386 lübz | fon: 0176 7808 9090 -- 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/1151542161.227014.1690362546823%40office.mailbox.org.
