[stable-2.16] uri: update docs for follow_redirects (#83177)

* [stable-2.16] uri: update docs for follow_redirects

* Updated the docs for the parameter follow_redirects

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit fcc6d0bd0c)

* CI fixes

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

---------

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/83226/head
Abhijeet Kasurde 1 month ago committed by GitHub
parent 3761e11a5c
commit b92e2eb20b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
---
bugfixes:
- uri - update the documentation for follow_redirects.

@ -108,14 +108,15 @@ options:
default: no
follow_redirects:
description:
- Whether or not the URI module should follow redirects. V(all) will follow all redirects.
V(safe) will follow only "safe" redirects, where "safe" means that the client is only
doing a GET or HEAD on the URI to which it is being redirected. V(none) will not follow
any redirects. Note that V(true) and V(false) choices are accepted for backwards compatibility,
where V(true) is the equivalent of V(all) and V(false) is the equivalent of V(safe). V(true) and V(false)
are deprecated and will be removed in some future version of Ansible.
- Whether or not the URI module should follow redirects.
- V(all) Will follow all redirects.
- V(none) Will not follow any redirects.
- V(safe) Only redirects doing GET or HEAD requests will be followed.
- V(urllib2) Defer to urllib2 behavior (As of writing this follows HTTP redirects).
- V('no') (DEPRECATED, will be removed in the future version) alias of V(none).
- V('yes') (DEPRECATED, will be removed in the future version) alias of V(all).
choices: ['all', 'none', 'safe', 'urllib2', 'yes', 'no']
type: str
choices: ['all', 'no', 'none', 'safe', 'urllib2', 'yes']
default: safe
creates:
description:

@ -88,7 +88,14 @@ options:
- section: url_lookup
key: force_basic_auth
follow_redirects:
description: String of urllib2, all/yes, safe, none to determine how redirects are followed, see RedirectHandlerFactory for more information
description:
- String of urllib2, all/yes, safe, none to determine how redirects are followed, see RedirectHandlerFactory for more information.
- V(all) Will follow all redirects.
- V(none) Will not follow any redirects.
- V(safe) Only redirects doing GET or HEAD requests will be followed.
- V(urllib2) Defer to urllib2 behavior (As of writing this follows HTTP redirects).
- V('no') (DEPRECATED, will be removed in the future version) alias of V(none).
- V('yes') (DEPRECATED, will be removed in the future version) alias of V(all).
type: string
version_added: "2.10"
default: 'urllib2'
@ -99,6 +106,7 @@ options:
ini:
- section: url_lookup
key: follow_redirects
choices: ['all', 'none', 'safe', 'urllib2', 'yes', 'no']
use_gssapi:
description:
- Use GSSAPI handler of requests

Loading…
Cancel
Save