Skip to content

Latest commit

 

History

History
215 lines (179 loc) · 6.59 KB

community.windows.win_file_version_module.rst

File metadata and controls

215 lines (179 loc) · 6.59 KB

community.windows.win_file_version

Get DLL or EXE file build version

  • Get DLL or EXE file build version.
Parameter Choices/Defaults Comments
path
path / required
File to get version.
Always provide absolute path.

Note

  • This module will always return no change.
.. seealso::

   :ref:`ansible.windows.win_file_module`
      The official documentation on the **ansible.windows.win_file** module.


- name: Get acm instance version
  community.windows.win_file_version:
    path: C:\Windows\System32\cmd.exe
  register: exe_file_version

- debug:
    msg: '{{ exe_file_version }}'

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
file_build_part
string
no error
build number of the file.

file_major_part
string
no error
the major part of the version number.

file_minor_part
string
no error
the minor part of the version number of the file.

file_private_part
string
no error
file private part number.

file_version
string
no error
File version number..

path
string
always
file path

product_version
string
no error
The version of the product this file is distributed with.



Authors

  • Sam Liu (@SamLiu79)