New in version 2.1.
Get DLL or EXE file build version change state alway be false
parameter | required | default | choices | comments |
---|---|---|---|---|
path | yes | File to get version(provide absolute path) |
# get C:\Windows\System32\cmd.exe version in playbook --- - 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 Common Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
win_file_version.file_major_part | the major part of the version number. | no error | string | |
win_file_version.file_minor_part | the minor part of the version number of the file. | no error | string | |
win_file_version.file_version | file version number. | no error | string | |
win_file_version.product_version | the version of the product this file is distributed with. | no error | string | |
win_file_version.file_private_part | file private part number. | no error | string | |
win_file_version.path | file path | always | string | |
win_file_version.file_build_part | build number of the file. | no error | string |
For more information on what this means please read Extras Modules
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.
© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/win_file_version_module.html