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.  

==================================================
    - name: install an application
      win_command: '"C:\Program Files (x86)\application.exe" -s'

===================================================

cmd is for silent install. and this application requires to reboot and 
there is no way of not to restart the window. (/norestart doesn't work on 
this application.)
And before even boots up get the following message:


TASK [install an application] 
*********************************************************************************************
fatal: [WIN_IP]: FAILED! => {"changed": true, "cmd": "\"C:\\Program Files 
(x86)\\application.exe\" -s", "delta": "0:03:54.187611", "end": "2017-08-03 
01:27:44.137300", "failed": true, "rc": 3, "start": "2017-08-03 
01:23:49.949689", "stderr": "", "stderr_lines": [], "stdout": "", 
"stdout_lines": []}
        to retry, use: --limit @/etc/ansible/install.retry

After the reboot, I see that application was successfully installed but on 
the ansible side it throws out an error and playbook stop. 

since the message does not throw anything out, cannot tell what is an 
issue. 

Any ideas/help?

Thanks in advance!

-- 
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/513e513d-a360-4a64-b2fd-d52313dae51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to