Closed derekslenk closed 6 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @dagwieers @jborean93 @jhawkesworth @nitzmahone @trondhindenes click here for bot help
Thanks @derekslenk for letting us know about this. I've raised a PR here https://github.com/ansible/ansible/pull/34476 and will backport to 2.4 when the tests are complete. Feel free to test it out if you can.
Otherwise to get you going today I would either
SQLDOM.msi
C:\Windows\System32\msiexec.exe
and pass the file to the argumentsOne thing to note, win_package will add the /quiet
argument for MSI's automatically so you don't need to specify any arguments in your case.
https://github.com/ansible/ansible/blob/9dc9313c65ceafd4f840ccb67cbe50db42db47a8/lib/ansible/modules/windows/win_package.ps1#L176
Don't get hung up on the references to SQLDOM.MSI. Just the installer I had that downloaded with an all uppercase file extension.
ISSUE TYPE
COMPONENT NAME
win_package
ANSIBLE VERSION
CONFIGURATION
ACCELERATE_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 5.0 ACCELERATE_DAEMON_TIMEOUT(/etc/ansible/ansible.cfg) = 30 ACCELERATE_PORT(/etc/ansible/ansible.cfg) = 5099 ACCELERATE_TIMEOUT(/etc/ansible/ansible.cfg) = 30 CACHE_PLUGIN(/etc/ansible/ansible.cfg) = memory DEFAULT_ACTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/action_plugins'] DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/callback_plugins'] DEFAULT_CONNECTION_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/connection_plugins'] DEFAULT_FILTER_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/filter_plugins'] DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 5 DEFAULT_GATHERING(/etc/ansible/ansible.cfg) = implicit DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/hosts'] DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log DEFAULT_LOOKUP_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/lookup_plugins'] DEFAULT_MANAGED_STR(/etc/ansible/ansible.cfg) = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} DEFAULT_MODULE_LANG(/etc/ansible/ansible.cfg) = C DEFAULT_POLL_INTERVAL(/etc/ansible/ansible.cfg) = 15 DEFAULT_REMOTE_TMP(/etc/ansible/ansible.cfg) = /tmp/ansible DEFAULT_SCP_IF_SSH(/etc/ansible/ansible.cfg) = True DEFAULT_SUDO_EXE(/etc/ansible/ansible.cfg) = sudo DEFAULT_SUDO_USER(/etc/ansible/ansible.cfg) = root DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 10 DEFAULT_TRANSPORT(/etc/ansible/ansible.cfg) = smart DEFAULT_VARS_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible_plugins/vars_plugins'] HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
OS / ENVIRONMENT
RHEL 7
SUMMARY
When using win_package to try and install a file ending with the extension .MSI, the installer fails saying "failed to start executable C:\\installs\filename.MSI: The specified executable is not a valid application for this OS platform."
The same file installs fine when renamed with .msi
STEPS TO REPRODUCE
EXPECTED RESULTS
--
ACTUAL RESULTS