ansible / ansible.builtin / v2.3.3.0-1 / module / win_msi Installs and uninstalls Windows MSI files | "added in version" 1.7 of ansible.builtin" Authors: Matt Martz (@sivel) deprecated | supported by communityansible.builtin.win_msi (v2.3.3.0-1) — module
pip
Install with pip install ansible==2.3.3.0.post1
Installs or uninstalls a Windows MSI file that is already located on the target server
- 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
path: description: - File system path to the MSI file to install required: true wait: choices: - true - false default: false description: - Specify whether to wait for install or uninstall to complete before continuing. version_added: '2.1' version_added_collection: ansible.builtin state: choices: - present - absent default: present description: - Whether the MSI file should be installed or uninstalled creates: description: - Path to a file created by installing the MSI to prevent from attempting to reinstall the package on every run extra_args: description: - Additional arguments to pass to the msiexec.exe command