mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Improve YAML examples - windows/win_file_version.py (#19399)
This commit is contained in:
parent
0aa16b36b7
commit
9b3d9e1780
1 changed files with 2 additions and 5 deletions
|
@ -38,17 +38,14 @@ options:
|
||||||
author: Sam Liu
|
author: Sam Liu
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = r'''
|
||||||
# get C:\Windows\System32\cmd.exe version in playbook
|
|
||||||
---
|
|
||||||
- name: Get acm instance version
|
- name: Get acm instance version
|
||||||
win_file_version:
|
win_file_version:
|
||||||
path: 'C:\Windows\System32\cmd.exe'
|
path: C:\Windows\System32\cmd.exe
|
||||||
register: exe_file_version
|
register: exe_file_version
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: '{{ exe_file_version }}'
|
msg: '{{ exe_file_version }}'
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = """
|
RETURN = """
|
||||||
|
|
Loading…
Reference in a new issue