# Ansible using winn command

**URL:** <https://forum.ansible.com/t/ansible-using-winn-command/28869>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [October 25, 2018, 2:58pm UTC](https://forum.ansible.com/t/ansible-using-winn-command/28869 "2018-10-25T14:58:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadim\_mansour](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Post date:** [October 25, 2018, 2:58pm UTC](https://forum.ansible.com/t/ansible-using-winn-command/28869/1 "2018-10-25T14:58:17Z")

</div>

Hello,

when I try to run the following command : " C:\tmp\ODAC121021\_x64\setup.exe -silent -responseFile C:\tmp\client.rsp " on windows server through command line or power shell it runs well and install odic(oracle client silent) But

when i TRY TO RUN IT through ansible using the below it returns error :

- name: install oracle silently  
win\_command: C:\tmp\ODAC121021\_x64\setup.exe -silent -responseFile “C:\tmp\client.rsp”

error :

fatal: [10.1.116.151]: FAILED! =\> {

“changed”: true,

“cmd”: “C:\tmp\ODAC121021\_x64\setup.exe -silent -responseFile "C:\tmp\client.rsp"”,

“delta”: “0:00:38.324188”,

“end”: “2018-10-25 02:54:50.631188”,

“msg”: “non-zero return code”,

“rc”: 259,

“start”: “2018-10-25 02:54:12.306999”,

“stderr”: “”,

“stderr\_lines”: ,

“stdout”: “\r\n Exit code of OUI process 259=”,

“stdout\_lines”: [

“”,

" Exit code of OUI process 259="

]
