New in version 2.1.
Parameter | Choices/Defaults | Comments |
---|---|---|
path
required |
File to get version.
Always provide absolute path.
|
- 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.
Hint
If you notice any issues in this documentation you can edit this document to improve it.