ansible.builtin.win_file_version (v2.4.2.0-1) — module

Get DLL or EXE file build version

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

Authors: Sam Liu

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.2.0.post1

Description

Get DLL or EXE file build version

change state alway be false

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get acm instance version
  win_file_version:
    path: C:\Windows\System32\cmd.exe
  register: exe_file_version
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- debug:
    msg: '{{ exe_file_version }}'

Inputs

    
path:
    aliases: []
    description:
    - File to get version(provide absolute path)
    required: true

Outputs

win_file_version.file_build_part:
  description: build number of the file.
  returned: no error
  type: string
win_file_version.file_major_part:
  description: the major part of the version number.
  returned: no error
  type: string
win_file_version.file_minor_part:
  description: the minor part of the version number of the file.
  returned: no error
  type: string
win_file_version.file_private_part:
  description: file private part number.
  returned: no error
  type: string
win_file_version.file_version:
  description: file version number.
  returned: no error
  type: string
win_file_version.path:
  description: file path
  returned: always
  type: string
win_file_version.product_version:
  description: the version of the product this file is distributed with.
  returned: no error
  type: string