[PR #9528/838cdaab backport][stable-10] lmn*: style adjustments (#9543)

lmn*: style adjustments (#9528)

* lmn*: style adjustments

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 838cdaab42)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-01-07 18:45:30 +01:00 committed by GitHub
parent 1f29fa2e39
commit 75f649648e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 440 additions and 378 deletions

View file

@ -16,7 +16,8 @@ module: maven_artifact
short_description: Downloads an Artifact from a Maven Repository
description:
- Downloads an artifact from a maven repository given the maven coordinates provided to the module.
- Can retrieve snapshots or release versions of the artifact and will resolve the latest available version if one is not available.
- Can retrieve snapshots or release versions of the artifact and will resolve the latest available version if one is not
available.
author: "Chris Schmidt (@chrisisbeef)"
requirements:
- lxml
@ -75,7 +76,8 @@ options:
password:
type: str
description:
- The password to authenticate with to the Maven Repository. Use AWS secret access key of the repository is hosted on S3.
- The password to authenticate with to the Maven Repository. Use AWS secret access key of the repository is hosted on
S3.
aliases: ["aws_secret_access_key"]
headers:
description:
@ -83,9 +85,9 @@ options:
type: dict
force_basic_auth:
description:
- Httplib2, the library used by the uri module only sends authentication information when a webservice responds to an initial request with
a 401 status. Since some basic auth services do not properly send a 401, logins will fail. This option forces the sending of the Basic
authentication header upon initial request.
- C(httplib2), the library used by the URI module only sends authentication information when a webservice responds to an
initial request with a 401 status. Since some basic auth services do not properly send a 401, logins will fail. This
option forces the sending of the Basic authentication header upon initial request.
default: false
type: bool
version_added: '0.2.0'
@ -126,7 +128,8 @@ options:
keep_name:
description:
- If V(true), the downloaded artifact's name is preserved, in other words the version number remains part of it.
- This option only has effect when O(dest) is a directory and O(version) is set to V(latest) or O(version_by_spec) is defined.
- This option only has effect when O(dest) is a directory and O(version) is set to V(latest) or O(version_by_spec) is
defined.
type: bool
default: false
verify_checksum:
@ -134,10 +137,11 @@ options:
description:
- If V(never), the MD5/SHA1 checksum will never be downloaded and verified.
- If V(download), the MD5/SHA1 checksum will be downloaded and verified only after artifact download. This is the default.
- If V(change), the MD5/SHA1 checksum will be downloaded and verified if the destination already exist, to verify if they are identical.
This was the behaviour before 2.6. Since it downloads the checksum before (maybe) downloading the artifact, and since some repository
software, when acting as a proxy/cache, return a 404 error if the artifact has not been cached yet, it may fail unexpectedly. If you still
need it, you should consider using V(always) instead - if you deal with a checksum, it is better to use it to verify integrity after download.
- If V(change), the MD5/SHA1 checksum will be downloaded and verified if the destination already exist, to verify if
they are identical. This was the behaviour before 2.6. Since it downloads the checksum before (maybe) downloading
the artifact, and since some repository software, when acting as a proxy/cache, return a 404 error if the artifact
has not been cached yet, it may fail unexpectedly. If you still need it, you should consider using V(always) instead
- if you deal with a checksum, it is better to use it to verify integrity after download.
- V(always) combines V(download) and V(change).
required: false
default: 'download'
@ -146,8 +150,8 @@ options:
type: str
description:
- If V(md5), checksums will use the MD5 algorithm. This is the default.
- If V(sha1), checksums will use the SHA1 algorithm. This can be used on systems configured to use FIPS-compliant algorithms, since MD5
will be blocked on such systems.
- If V(sha1), checksums will use the SHA1 algorithm. This can be used on systems configured to use FIPS-compliant algorithms,
since MD5 will be blocked on such systems.
default: 'md5'
choices: ['md5', 'sha1']
version_added: 3.2.0