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/b7cfda26-56f0-4533-918a-6bea319f2cf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to