My bad, I tried to edit my original post and add the quotes, it doesn't
matter whether you include them or not. The problem is a combination of the
include and hosts statements. The ansible github page says this is patched
in 2.1, see my previous post.
On Wednesday, June 1, 2016 at 9:10:08 AM UTC-7, Johannes Kastl wrote:
>
> 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/f967f9f0-f75f-4982-a10b-c58f8c05c428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.