For msi and exe packages - use win_package as a rule of thumb. If you still 
have issues with these, you can report an issue here 
https://github.com/ansible/ansible/issues because the module's supported by 
the community.

win_command shouldn't be used for installations as it usually ends up in a 
hit or a miss situation. If win_package doesn't work for you, you can try 
putting your win_command arguments as a pwsh script, saving it on the 
target node, and running that script through a remote powershell session. 
If you don't know how to do that, you can look up invoke-command or 
new-pssession. Ansible uses winrm as well so any issues you have with 
ansible should be visible by running this script remotely.

On Sunday, September 23, 2018 at 11:07:17 PM UTC+5:30, Isha G wrote:
>
> For SQL we used win_command so I thought that should work for Oracle but 
> it doesn't seem to work. Should I try through remote power shell ?
>
> On Sunday, September 23, 2018, Varun Chopra <[email protected] 
> <javascript:>> wrote:
>
>> That wasn't my question though.
>>
>> If you can run it remotely from another windows vm you should be able to 
>> see where it breaks side-by-side. Also, is there a reason you're not using 
>> win_package?
>>
>>
>>
>> On Sunday, September 23, 2018 at 10:49:19 PM UTC+5:30, Isha G wrote:
>>>
>>> I have just tried it locally and manually and it works every time. I 
>>> just created a couple of new Windows servers and installing it with ansible 
>>> hangs again so it does not seem to be a cleanup issue.                      
>>>                         
>>> On Sunday, September 23, 2018, Varun Chopra <[email protected]> wrote:
>>>
>>>> Can you install it remotely via invoke-command?
>>>>
>>>> -- 
>>>> 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/9521693a-69d2-4cdb-a16b-cde2f135bd46%40googlegroups.com
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/c5241128-da63-4615-8780-3d3aff376e15%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/c5241128-da63-4615-8780-3d3aff376e15%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/d21fa7c4-83d2-43ee-9350-191af3662f5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to