I am creating a playbook that will install an MSI package on a Windows server, but the win_package
module does not respond if the MSI package is already installed. The Ansible documentation says that I can use product_id
of an MSI package while installing the package, but the product_id
only works if the previously installed package version is the same version as the package I am installing - the Windows server might have a different version of same installer.
How can I uninstall the previous version, and install the current version, using Ansible?