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:
Dag Wieers 2018-11-12 21:20:09 +01:00 committed by Jordan Borean
parent 0ede11da3b
commit a8b5d30a9e
2 changed files with 70 additions and 53 deletions

View file

@ -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