Unexpected RC while uninstallaing a package using win_package

16 views
Skip to first unread message

shyam rpm

unread,
Jun 29, 2019, 1:07:05 PM6/29/19
to Ansible Project
Hi All,

Im trying to uninstall a package using win_package but getting the following error, Playbook is able to remove the software from the server but at the end Im getting this error.

"msg": "unexpected rc from install G:\\Program Files\\IBM\\cognos\\tm1_64\\uninstall\\uninst.exe: see rc, stdout, and stderr for more details",

"rc": 2,

this is the playbook,

- win_package: 
    arguments: "/S"
    path: "G:\\Program Files\\IBM\\cognos\\tm1_64\\uninstall\\uninst.exe"
    product_id: auto




Thanks and Regards,




goforawalktwice

unread,
Jun 30, 2019, 4:29:33 PM6/30/19
to Ansible Project
Perhaps try running interactively directly on target machine. There should be a logging option somehow too

Jordan Borean

unread,
Jun 30, 2019, 5:31:57 PM6/30/19
to Ansible Project
We set the 'stdout' and 'stderr' return keys to what was returned when trying to run that executable. You should see what the values were for that to try and debug it futher. If nothing was returned on those keys then you need to look into Cognos and see what an rc of 2 means. This could be found in log files related to that application or some doc on IBM's website. The value is typically application specific and not something we could really help you with.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages