It appears as though the backslashes are escaping the character that
follows (which doesn't quite make sense since your example uses a
single-quoted string).   What version of ansible are you using?

You could try:    raw: "D:\\builds\\router\\bin\\wrapper.exe"


On Mon, Sep 28, 2015 at 4:27 AM, Jugal Porwal <jugalpor...@gmail.com> wrote:

> Hi,
>
> I want to run a .exe on windows command prompt from my centos control
> node. The command is as follows :
>
> wrapper.exe  -t wrapper.conf
>
> Initially i tried to atleast run the .exe without any args using my
> following playbook :
>
> ---
> - hosts: windows
>   tasks:
>     - name: Register as a service
>       raw: 'D:\builds\router\bin\wrapper.exe'
>
>
>
> But i got the following error:
>
> fatal: [192.168.199.94]: FAILED! => {"changed": false, "failed": true,
> "rc": 1, "stderr": "#< CLIXML\r\n<Objs Version=\"1.1.0.1\" xmlns=\"
> http://schemas.microsoft.com/powershell/2004/04\";><S
> S=\"Error\">D:_x0008_uilds : The term 'D:_x0008_uilds' is not recognized as
> the name of a cmdlet, _x000D__x000A_</S><S S=\"Error\">function, script
> file, or operable program. Check the spelling of the name, or
> _x000D__x000A_</S><S S=\"Error\">if a path was included, verify that the
> path is correct and try again._x000D__x000A_</S><S S=\"Error\">At line:1
> char:1_x000D__x000A_</S><S S=\"Error\">+ D:_x0008_uilds_x000D__x000A_</S><S
> S=\"Error\">+ ~~~~~~~~_x000D__x000A_</S><S S=\"Error\">    +
> CategoryInfo          : ObjectNotFound: (D:_x0008_uilds:String) [],
> CommandNot _x000D__x000A_</S><S S=\"Error\">
> FoundException_x000D__x000A_</S><S S=\"Error\">    +
> FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_</S><S
> S=\"Error\"> _x000D__x000A_</S><S S=\"Error\">outer_x0008_in\\wrapper.exe
> : The module 'outer_x0008_in' could not be loaded. For more
> _x000D__x000A_</S><S S=\"Error\">information, run 'Import-Module
> outer_x0008_in'._x000D__x000A_</S><S S=\"Error\">At line:2
> char:1_x000D__x000A_</S><S S=\"Error\">+ 
> outer_x0008_in\\wrapper.exe_x000D__x000A_</S><S
> S=\"Error\">+ ~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\"Error\">    +
> CategoryInfo          : ObjectNotFound: (outer_x0008_in\\wrapper.exe:String)
> [] _x000D__x000A_</S><S S=\"Error\">   , 
> CommandNotFoundException_x000D__x000A_</S><S
> S=\"Error\">    + FullyQualifiedErrorId : 
> CouldNotAutoLoadModule_x000D__x000A_</S><S
> S=\"Error\"> _x000D__x000A_</S></Objs>", "stdout": "", "stdout_lines": []}
>
>
> Is it achievable what i'm trying to do?
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f7d197e0-fb20-4cbd-b4da-bae2b726bc05%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f7d197e0-fb20-4cbd-b4da-bae2b726bc05%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ5470qWS0m4nvQK25k_12JeaQ0frN7aMZ6_1r9VvMikBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to