It sounds like you have hit this issue:
https://github.com/ansible/ansible/issues/21915
I guess you could try updating the powershell / windows management
framework version to see if that helps, or perhaps upgrade the machine to
S2008R2?
All the best,
Jon
On Wednesday, September 6, 2017 at 8:28:50 PM UTC+1, akshar barot wrote:
>
> Hi All,
>
> I have configured ansible to run some cmd script on windows machine. it is
> working fine in windows 7,8,2010.
>
> But, it is now working for only windows 2008.
>
> It is providing empty output.
> =============================
> TASK [debug]
> *********************************************************************************
> task path: /home/ansible/ansible_test/hotfix.yml:16
> ok: [10.50.89.34] => {
> "script_file": {
> "changed": true,
> "cmd": "C:\\Users\\administrator\\Desktop\\test_hotfix3.cmd",
> "delta": "0:00:00.031199",
> "end": "2017-09-06 07:22:53.958016",
> "rc": 0,
> "start": "2017-09-06 07:22:53.926816",
> "stderr": "",
> "stderr_lines": [],
> "stdout": "",
> "stdout_lines": []
> }
> }
> =============================================
>
> Here is yaml file,
>
>
> - name: Copy a single file
> win_copy:
> src: /root/test_hotfix3.cmd
> dest: c:\Users\administrator\Desktop
>
> - win_command: C:\Users\administrator\Desktop\test_hotfix3.cmd
> register: script_file
>
> ========================================
>
> not sure, why it is not running in 2008 only.
>
> any clue???
>
> Thank you 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 [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/d4b73701-783f-4cfe-90b9-5035b96e6691%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.