- Docs »
- win_file_version - Get DLL or EXE file build version
-
You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
win_file_version - Get DLL or EXE file build version
- Get DLL or EXE file build version.
Parameter |
Choices/Defaults |
Comments |
path
required |
|
File to get version.
Always provide absolute path.
|
Note
- This module will always return no change.
- name: Get acm instance version
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 |
win_file_version.file_build_part
string
|
no error |
build number of the file.
|
win_file_version.file_major_part
string
|
no error |
the major part of the version number.
|
win_file_version.file_minor_part
string
|
no error |
the minor part of the version number of the file.
|
win_file_version.file_private_part
string
|
no error |
file private part number.
|
win_file_version.file_version
string
|
no error |
file version number.
|
win_file_version.path
string
|
always |
file path
|
win_file_version.product_version
string
|
no error |
the version of the product this file is distributed with.
|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.