Hey Jordan, There's actually a few scenarios I need to account for - uninstalling, new installs, and upgrades where I'll need to know the version of the Splunk software which seems to only be visible in the UninstallString values of the Registry. It's just such a deep dive into the registry and can get confusing within the role.
I'm going to use win_package and reference the Splunk uninstall string for the uninstall scenario. Thanks - it's nice to know there's some support on the Windows side of Ansible! Heather On Fri, Dec 15, 2017 at 4:55 PM, Jordan Borean <[email protected]> wrote: > 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/Fo7DrDFjp2k/unsubscribe. > To unsubscribe from this group and all its topics, 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 > <https://groups.google.com/d/msgid/ansible-project/2944e16f-89ef-422a-b304-155f3cd77699%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- All my best, Heather Luna DjangoCon US Sponsorship Chair P. 267-838-7076 @h34th3r329 *The DjangoCon conference is organized by DEFNA <https://www.defna.org/about/>, a non-profit 501(c)(3) organization, so your sponsorship is tax-deductible. * -- 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/CABOQ31xigjx%3D49pga34qnzyaWa_Lb4VDy0r8dvTEmwxNNKaRuQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
