Good day to All.
Hoping someone can help me solve my uninstall issue in my playbook.
Sample Playbook:
- name: Uninstall existing Collabnet Auto Update
win_package:
path: "C:\Program Files\CollabNet\Subversion Client\uninst.exe
product_id: auto
arguments:
- /S
state: absent
validate_certs: no
register: uninstall_collab_status
- name: Uninstall GIT
win_package:
path: C:\Program Files\Git\unins000.exe
product_id: auto
arguments:
- /SILENT
state: absent
register: uninstall_git_status
Result:
TASK [Uninstall Collabnet] *********************************
ok: [Host IP]
TASK [Uninstall GIT] ****************************************
ok: [Host IP]
Changed: False
When I checked the Host, Both software still exists.
Steps did in debugging:
1. Tried to use Powershell commands to check Product ID of both softwares
using
Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -like 'Git
*'}
Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -like
'CollabNet *'}
But it doesn't return any.
2. Tried to use cmd in host, to check if silent uninstall works
uninst.exe /S
unins000.exe /SILENT
These commands work.
Question:
Can someone help me how uninstall these softwares using ansible?
--
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/dd7cd407-dd67-4243-97c0-eb95c224f90e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.