Hi,
if I remember correctly, I was never able to fix the problem and ended up
using a workaround. I will try to get the environment back online to see
what it was exactly but I remember it wasn't pretty.
BR,
Daniel
W dniu środa, 1 czerwca 2016 17:14:18 UTC+1 użytkownik einarc napisał:
>
> 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/b92aa26d-cdf6-49fb-a817-ff1e4f27f345%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.