Hi, Jon.
The path to the executable is actually C:\Program Files (x86)\Kaspersky
Lab\NetworkAgent, My bad typing.
Since I am using version 2.2, I've tried win_command, and get the following
error:
fatal: [machine10]: FAILED! => {"changed": false, "cmd": "klmover -address
192.168.192.18", "failed": true, "msg": "The system cannot find the file
specified", "rc": 2}
The file klmover.exe IS in the specified directory. The command does have
to be "Run as Administrator", so I added become_user: Administrator, but
that didn't help.
On Wednesday, February 1, 2017 at 9:18:40 AM UTC-5, Dimitri Yioulos wrote:
>
> Hi, all.
>
> Another probably simple question that I need help with:
>
> I need to run a program utility on several machines, as follows:
>
> C:\Program Files\Kaspersky Lab\Network Agent\klmover.exe -address
> 172.16.1.1
>
> I've tried running it using the raw command
> raw: c:\windows\system32\cmd.exe /C "C:\Program Files\Kaspersky
> Lab\Network Agent\klmover.exe -address 172.16.1.1"
>
> I've tried several combinations of quotes around the command, and changing
> slashes/backslashes, but am not able to find a means to keep Ansible from
> complaining e.g. ""'C:\\Program' is not recognized as an internal or
> external command". I think it has more to do with the spaces in the path.
> Anyway, I would appreciate your help.
>
> Many thanks.
>
> Dimitri
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/af52a47c-67cf-422a-b46f-176a2d171cb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.