Agreed, Spent sometime banging my head just to get to version 2.1 using pip but that didn't fix the issue. Trying other workarounds like these did not work either. What really bothers me is how CRYPTIC ansible error messages are. I would have to look at the Python code flow and debug it to realize what's really going one. Not to mention the inconsistencies in documentation vs. examples and so on. It looks like I'm going to have to use a different flow then.
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 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/7080ca48-8250-40b3-ac22-3071f054999f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
