Went trough exact the same process (debugging, looking for a consistent documentation and so on). I will try update you, on what solution did I used, later on
Daniel Osielczak PGP Key: 4096R/3EC320D0 Fingerprint: 4268 54CD 50FF 5465 DFC3 EA59 4350 D3BC 3EC3 20D0 2016-06-02 0:59 GMT+01:00 einarc <[email protected]>: > Thank You, BTW! > > > On Wednesday, June 1, 2016 at 3:43:37 PM UTC-7, Daniel Osielczak wrote: >> >> Found the bug report I filed back then. As you can see, this type of >> include is unsupported: >> >> https://github.com/ansible/ansible/issues/15119 >> >> W dniu środa, 1 czerwca 2016 23:37:39 UTC+1 użytkownik Daniel Osielczak >> napisał: >>> >>> 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/BjycVAVlUpI/unsubscribe. > To unsubscribe from this group and all its topics, 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/62de02fa-0508-44f5-a78d-7e0b82df5836%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/62de02fa-0508-44f5-a78d-7e0b82df5836%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BCmEQ7RSjCSmFu7xaRUtYh8T6kwO78jS1UTM4sw8qjPogkVvQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
