diff options
author | Dag Wieers <dag@wieers.com> | 2018-09-24 17:18:06 +0200 |
---|---|---|
committer | Alicia Cozine <879121+acozine@users.noreply.github.com> | 2018-09-24 10:18:06 -0500 |
commit | db5b65f5d618859ebb23c815797f7d88057c7fea (patch) | |
tree | 7ddc07cbbfc207e5a30e0ca50f37ed29d56712a6 /lib | |
parent | f90fc8a9a284789bb23a084c6ebfac8ad44f9499 (diff) | |
download | ansible-db5b65f5d618859ebb23c815797f7d88057c7fea.tar.gz |
win_get_url: Clarify the encoded slash issue (#45376)
* win_get_url; Clarify the encoded slash issue
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/modules/windows/win_get_url.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/ansible/modules/windows/win_get_url.py b/lib/ansible/modules/windows/win_get_url.py index 9fe6ffa795..60cbfe59fd 100644 --- a/lib/ansible/modules/windows/win_get_url.py +++ b/lib/ansible/modules/windows/win_get_url.py @@ -4,7 +4,7 @@ # Copyright: (c) 2014, Paul Durivage <paul.durivage@rackspace.com>, and others # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# this is a windows documentation stub. actual code lives in the .ps1 +# This is a windows documentation stub. actual code lives in the .ps1 # file of the same name ANSIBLE_METADATA = {'metadata_version': '1.1', @@ -28,6 +28,7 @@ options: description: - The full URL of a file to download. required: yes + type: str dest: description: - The location to save the file at the URL. @@ -53,10 +54,12 @@ options: url_username: description: - Basic authentication username. + type: str aliases: [ username ] url_password: description: - Basic authentication password. + type: str aliases: [ password ] force_basic_auth: description: @@ -76,14 +79,17 @@ options: proxy_url: description: - The full URL of the proxy server to download through. + type: str version_added: "2.0" proxy_username: description: - Proxy authentication username. + type: str version_added: "2.0" proxy_password: description: - Proxy authentication password. + type: str version_added: "2.0" use_proxy: description: @@ -98,6 +104,10 @@ options: type: int default: 10 version_added : '2.4' +notes: +- If your URL includes an escaped slash character (%2F) this module will convert it to a real slash. + This is a result of the behaviour of the System.Uri class as described in + L(the documentation,https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/schemesettings-element-uri-settings#remarks). ''' EXAMPLES = r''' |