[PR #10480/c1bd4611 backport][stable-11] doc style adjustments: modules s* (#10487)

doc style adjustments: modules s* (#10480)

* doc style adjustments: modules s*

* adjust comment indentation

* remove empty RETURN section in stacki_host

* spectrum_model_attrs: improve formatting of example

* Apply suggestions from code review



* Update plugins/modules/spotinst_aws_elastigroup.py



* Update plugins/modules/swdepot.py



---------


(cherry picked from commit c1bd461173)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2025-07-27 14:34:24 +00:00 committed by GitHub
commit 9e91fb0704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 191 additions and 174 deletions

View file

@ -49,7 +49,7 @@ options:
host:
description:
- The endpoint this configuration is valid for.
- Can be an actual address on the internet or an alias that will connect to the value of O(hostname).
- It can be an actual address on the internet or an alias that connects to the value of O(hostname).
required: true
type: str
hostname:
@ -66,7 +66,7 @@ options:
type: str
identity_file:
description:
- The path to an identity file (SSH private key) that will be used when connecting to this host.
- The path to an identity file (SSH private key) that is used when connecting to this host.
- File need to exist and have mode V(0600) to be valid.
type: path
identities_only:
@ -141,7 +141,7 @@ options:
version_added: 10.1.0
other_options:
description:
- Provides the option to specify arbitrary SSH config entry options via a dictionary.
- Allows specifying arbitrary SSH config entry options using a dictionary.
- The key names must be lower case. Keys with upper case values are rejected.
- The values must be strings. Other values are rejected.
type: dict
@ -198,22 +198,27 @@ hosts_change_diff:
description: A list of host diff changes.
returned: on change
type: list
sample: [
{
"example.com": {
"new": {
"hostname": "github.com",
"identityfile": ["/tmp/test_ssh_config/fake_id_rsa"],
"port": "2224"
},
"old": {
"hostname": "github.com",
"identityfile": ["/tmp/test_ssh_config/fake_id_rsa"],
"port": "2224"
sample:
[
{
"example.com": {
"new": {
"hostname": "github.com",
"identityfile": [
"/tmp/test_ssh_config/fake_id_rsa"
],
"port": "2224"
},
"old": {
"hostname": "github.com",
"identityfile": [
"/tmp/test_ssh_config/fake_id_rsa"
],
"port": "2224"
}
}
}
}
]
]
"""
import os