mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Windows modules: Add -type "path" to path parameters (#20282)
This PR is based on #20164 functionality to specify the parameter type (e.g. as done for python modules). In this case only -type "path" has a specific meaning, as it will expand environment variables for paths. Which is typically done on Windows. So you can do: - win_copy: src: files/some.doc dest: '%UserProfile%\My Documents'
This commit is contained in:
parent
5afc0d0c58
commit
7be39ca553
11 changed files with 22 additions and 22 deletions
|
@ -28,7 +28,7 @@ $days_of_week = Get-AnsibleParam $params -name "days_of_week"
|
|||
$enabled = Get-AnsibleParam $params -name "enabled" -default $true
|
||||
$enabled = $enabled | ConvertTo-Bool
|
||||
$description = Get-AnsibleParam $params -name "description" -default " "
|
||||
$path = Get-AnsibleParam $params -name "path"
|
||||
$path = Get-AnsibleParam $params -name "path" -type "path"
|
||||
$argument = Get-AnsibleParam $params -name "argument"
|
||||
|
||||
$result = New-Object PSObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue