win_command installing application on window machine

Hi,

I have some problems using Ansible with Windows
I’m trying to install program to the window with win_command.

Below is the part of the playbook which causes an issue.

Hey Cindy

You look at using win_package to install your exe, the only downside is that you need to know the product id of the application to run the task. Details on the module are at http://docs.ansible.com/ansible/latest/win_package_module.html, there are also some examples on that page to show you how it works with exe’s.

As for why it is failing in win_command it is probably due to the space in the path, Windows doesn’t play nicely with them. One thing I would try is use single quotes instead of double as well as looking at the application docs as to what an RC of 3 means.

Thanks

Jordan