MSIs seem to have different command line switches based on which installer technology they were created with. If you can’t find out from wherever you got the .msi from what the correct command line switches for an unattended installation.
You might need a full path (or relative path from the HOMEPATH of the user that ansible is running as) to the .mst file as well.
The thing that i don’t understand is the command with the same command (msiexec /i The msi package.msi /passiveTRANSFORMS=‘“Group Policy Deployment.mst”’) on powershell works fine
Have you got any other solutions?
Sorry for the late of the answer, i were on vacation
You can debug it a bit by passing the logging output switches in the arguments and then reviewing the logging from msi.
I would probably take a pragmatic approach and use win_shell to run msiexec, perhaps with the creates option to stop it from reattempting the installing if already installed.