[ansible-devel] Re: error when running a windows command using 'raw'

2019-08-16 Thread Chris Jackson
Jordan, Worked like a dream! I changed the module to win_command. Many thanks for your help! Regards Chris On Friday, August 16, 2019 at 12:03:45 PM UTC+1, Jordan Borean wrote: > > That’s my bad, when you quote the string and want to execute it you need > to add the call operator like: > >

[ansible-devel] Re: error when running a windows command using 'raw'

2019-08-16 Thread Chris Jackson
Sorry, just to add to the previous post, the yaml is now as follows:- - name: Installing the license raw: '"C:\Program Files\IBM\SQLLIB\BIN\db2licm" -a "{{ temp_area }}\{{ db2_lic_file }}"' On Thursday, August 15, 2019 at 5:08:28 PM UTC+1, Chris Jackson wrote: > >

[ansible-devel] Re: error when running a windows command using 'raw'

2019-08-16 Thread Chris Jackson
l\\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: (:) [], ParentContainsErr

[ansible-devel] error when running a windows command using 'raw'

2019-08-15 Thread Chris Jackson
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

[ansible-devel] quoting issue on JBoss install?>

2019-07-18 Thread Chris Jackson
Hi All, I'm sure someone with more ansible experience than I will spot the problem very quickly but I am tearing my hair out trying to figure out the issue. Basically, I want to issue the following command from my playbook:- "C:\Program Files\jboss5\jboss-5.1.0.GA\bin\service.bat" install

[ansible-devel] Re: winrm send_input failed. help needed.

2019-07-04 Thread Chris Jackson
Thanks Tony, Yes, you were right - I needed {{ this_artifact.value.name }} Chris. On Wednesday, July 3, 2019 at 7:24:11 PM UTC+1, Tony Chia wrote: > > Can you use the debug module and print out the variable > this_artifact.name ? > > It appears you have registered

[ansible-devel] Re: winrm send_input failed. help needed.

2019-07-03 Thread Chris Jackson
Thanks Jordan, The playbook has now moved on and now i am getting the following error:- 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name' this is being generated from an include_tasks on the following YAML: name: Get the package from the artifactory win_uri:

[ansible-devel] winrm send_input failed. help needed.

2019-07-03 Thread Chris Jackson
Hello, My playbook is failing with a long error: winrm send_input failed; \nstdout: Unable to initialize device PRN\r\nUnable to initialize device PRN\r\nUnable to initialize device PRN\r\nUnable to initialize device PRN\r\nUnable to initialize device PRN\r\n\nstderr _ANSIBALLZ_WRAPPER : The