On 01.06.16 17:59 einarc wrote:
> hosts: {{host_ip}}
>
> Error:
> fatal: [localhost]: FAILED! => {"failed": true, "reason": "Syntax Error
> while loading YAML.\n\n\nThe error appears to have been in '/path_to/
> auxiliary_playbook.yml': line 1, column 11, but may\nbe elsewhere in the
> file depending on the exact syntax problem.\n\nThe offending line appears
> to be:\n\n\n- hosts: {{host_ip}}\n ^ here\nWe could be wrong, but
> this one looks like it might be an issue with\nmissing quotes. Always
> quote template expression brackets when they\nstart a value. For
> instance:\n\n with_items:\n - {{ foo }}\n\nShould be written
> as:\n\n with_items:\n - \"{{ foo }}\"\n"}
This error only says you should quote correctly:
hosts: '{{ host_ip }}'
Maybe it works if the variable is quoted.
Johannes
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/574F08D8.7030609%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
