On Thu, Aug 15, 2019 at 4:07 PM Bob Harold <rharo...@umich.edu> wrote:

>
> On Thu, Aug 15, 2019 at 12:08 PM Chris Jackson <cj930...@gmail.com> wrote:
>
>>
>> Hi all,
>>
>> Tearing my hair out trying to resolve this. I am getting the following:-
>>
>>     "reason": "failed at splitting arguments, either an unbalanced jinja2
>> block or quotes: C:\\'Program Files'\\IBM\\SQLLIB\\BIN\\db2licm -a\n{{
>> temp_area }}\\{{ db2_lic_file }}\n\nThe error appears to have been in
>> '/var/lib/awx/projects/_49__ansible_chrisj_testing/playbooks/MQ_Test/Machine_Setup/roles/DB2_Install/tasks/Win32NT_DB2_Install.yml':
>> line 51, column 7, but may\nbe elsewhere in the file depending on the exact
>> syntax problem.\n\nThe offending line appears to be:\n\n\n    - name:
>> Installing the license\n      ^ here\n"
>>
>> This is the errant piece of yaml:-
>>
>>  - name: Installing the license
>>       raw: |
>>            C:\'Program Files'\IBM\SQLLIB\BIN\db2licm -a
>>            {{ temp_area }}\{{ db2_lic_file }}
>>
>> Can anyone help?
>>
>> Many Thanks
>>
>> Chris.
>>
>
> My first guess is that the backslash "\" characters are 'escaping' the
> following character.  Try doubling each of them "\\"
>
> --
> Bob Harold
>

Probably not that, it seems to have understood the backslash.  It is
complaining about the "name:" line, so either there is an invisible
character (happens when I cut/paste from a doc or web page), or likely the
problem is before that line, so it is not expecting the 'name:' line.  Can
you show us the preceding few lines?

-- 
Bob Harold

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CA%2Bnkc8Dcg_M4vTURZfy79LtWOfX0FqaEQ6VfL2pYH8cY8Sjuig%40mail.gmail.com.

Reply via email to