Thankls for the responses so far.

Getting a different error now after applying your suggestion Jordan (so 
positive)

"stderr_lines": [
        "At line:1 char:43",
        "+ \"C:\\Program Files\\IBM\\SQLLIB\\BIN\\db2licm\" -a 
\"C:\\Users\\ADMINI~1\\AppDa ...",
        "+                                           ~~",
        "Unexpected token '-a' in expression or statement.",
        "At line:1 char:46",
        "+ ... \\db2licm\" -a 
\"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\db2_11_aese_u.lic\"",
        "+                  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",
        "Unexpected token 
'\"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\db2_11_aese_u.lic\"' in 
expression or statement.",
        "+ CategoryInfo          : ParserError: (:) [], 
ParentContainsErrorRecordException",
        "+ FullyQualifiedErrorId : UnexpectedToken"
    ],
    "_ansible_no_log": false,
    "stdout": "",
    "changed": true,
    "stderr": "At line:1 char:43\r\n+ \"C:\\Program 
Files\\IBM\\SQLLIB\\BIN\\db2licm\" -a \"C:\\Users\\ADMINI~1\\AppDa 
...\r\n+                                           ~~\r\nUnexpected token 
'-a' in expression or statement.\r\nAt line:1 char:46\r\n+ ... \\db2licm\" 
-a 
\"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\db2_11_aese_u.lic\"\r\n+           
       
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nUnexpected 
token '\"C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\db2_11_aese_u.lic\"' in 
expression or statement.\r\n+ CategoryInfo          : ParserError: (:) [], 
ParentContainsErrorRecordException\r\n+ FullyQualifiedErrorId : 
UnexpectedToken\r\n",
    "rc": 1,
    "msg": "non-zero return code",
    "stdout_lines": []





On Thursday, August 15, 2019 at 5:08:28 PM UTC+1, Chris Jackson 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.
>

-- 
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/f9c34be3-7152-4199-a467-371791a369d1%40googlegroups.com.

Reply via email to