ansible.builtin.win_msi (v2.3.3.0-1) — module

Installs and uninstalls Windows MSI files

| "added in version" 1.7 of ansible.builtin"

Authors: Matt Martz (@sivel)

deprecated | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install an MSI file
  win_msi:
    path: C:\7z920-x64.msi
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install an MSI, and wait for it to complete before continuing
  win_msi:
    path: C:\7z920-x64.msi
    wait: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Uninstall an MSI file
  win_msi:
    path: C:\7z920-x64.msi
    state: absent

Inputs

    
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