mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 20:50:23 -07:00
win_shortcut: Rewrite using AnsibleModule (#48384)
* win_shortcut: Rewrite using AnsibleModule * Avoid using $args, fix issue * Small review fixes, and use 'arguments' parameter * Update doc with new alias version change
This commit is contained in:
parent
0ede11da3b
commit
a8b5d30a9e
2 changed files with 70 additions and 53 deletions
|
@ -31,9 +31,11 @@ options:
|
|||
- File name should have a C(.lnk) or C(.url) extension.
|
||||
required: yes
|
||||
type: path
|
||||
args:
|
||||
arguments:
|
||||
description:
|
||||
- Additional arguments for the executable defined in C(src).
|
||||
- Was originally just C(args) but renamed in Ansible 2.8.
|
||||
aliases: [ args ]
|
||||
directory:
|
||||
description:
|
||||
- Working directory for executable defined in C(src).
|
||||
|
@ -92,7 +94,7 @@ EXAMPLES = r'''
|
|||
win_shortcut:
|
||||
src: '%ProgramFiles%\Google\Chrome\Application\chrome.exe'
|
||||
dest: '%UserProfile%\Desktop\Ansible website.lnk'
|
||||
args: --new-window https://ansible.com/
|
||||
arguments: --new-window https://ansible.com/
|
||||
directory: '%ProgramFiles%\Google\Chrome\Application'
|
||||
icon: '%ProgramFiles%\Google\Chrome\Application\chrome.exe,0'
|
||||
hotkey: Ctrl+Alt+A
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue