I'm new to Ansible and trying to figure out the best way to account for:
If software version of Splunk = 6.4.1 trigger certain task sequence that includes an uninstall of the software
It felt like I needed to grab the uninstall string for Splunk from the registry to use with the win_package module as well as the software version number for Splunk
Also, if Splunk is not installed - trigger another task sequence.
Are there any other modules that could find this information without a deep dive into the registry with win_reg_stat? Some of the programmatic things a colleague and I were doing were extremely entailed and we don't have a full solution yet. Is there any way to leverage gather_facts?
Thank you