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
and this is my playbook chunk…
- name: Now run the installer
win_command: ‘cmd /c \“{{ artifact_target_location }}\jboss-5.1.0.GA\bin\service.bat\” install’
This is producing the following error from the playbook run…
“stderr_lines”: [
“‘\\"C:\Program Files\jboss5\\jboss-5.1.0.GA\\bin\\service.bat\\"’ is not recognized as an internal or external command,”,
“operable program or batch file.”
],
Can someone please give me a steer on what is wrong?
Kind Regards
Chris.