Documentation

win_msi - Installs and uninstalls Windows MSI files

New in version 1.7.

Synopsis

  • Installs or uninstalls a Windows MSI file that is already located on the target server

Options

parameter required default choices comments
creates
no
Path to a file created by installing the MSI to prevent from attempting to reinstall the package on every run
extra_args
no
Additional arguments to pass to the msiexec.exe command
path
yes
File system path to the MSI file to install
state
no present
  • present
  • absent
Whether the MSI file should be installed or uninstalled
wait
(added in 2.1)
no
  • True
  • False
Specify whether to wait for install or uninstall to complete before continuing.

Examples

- name: Install an MSI file
  win_msi:
    path: C:\7z920-x64.msi

- name: Install an MSI, and wait for it to complete before continuing
  win_msi:
    path: C:\7z920-x64.msi
    wait: true

- name: Uninstall an MSI file
  win_msi:
    path: C:\7z920-x64.msi
    state: absent

Notes

Note

  • Check-mode support is currently not supported.
  • Please look into win_package instead, this package will be deprecated in Ansible v2.3.

Status

This module is flagged as deprecated which means that .

Support

This module is community maintained without core committer oversight.

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.