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.