If it is just one software you want to uninstall use win_package with the 
product id, e.g.

- name: ensure Splunk x.y is uninstalled
  win_package:
    product_id: '{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}'  # note this ID 
will be unique to the Splunk version
    state: absent

IIRC correctly Splunk uses an MSI to install so you shouldn't need any 
arguments to uninstall but if it is an EXE you need to find out what the 
uninstall arguments are. The only thing you need is the product ID for the 
version, this is a once off process and you can find it in the registry, 
see the documentation for more 
details http://docs.ansible.com/ansible/latest/win_package_module.html.

Thanks

Jordan

-- 
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/2944e16f-89ef-422a-b304-155f3cd77699%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to