mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
feat(ssh_config): host_key_algorithms option (#5605)
* feat(ssh_config): host_key_algorithms option * chore: add changelog fragment * chore(ssh_config): add version info to option and update fragment
This commit is contained in:
parent
632fc07e65
commit
fb2833d34d
3 changed files with 22 additions and 0 deletions
|
@ -88,6 +88,11 @@ options:
|
|||
- If I(user) and this option are not specified, C(/etc/ssh/ssh_config) is used.
|
||||
- Mutually exclusive with I(user).
|
||||
type: path
|
||||
host_key_algorithms:
|
||||
description:
|
||||
- Sets the C(HostKeyAlgorithms) option.
|
||||
type: str
|
||||
version_added: 6.1.0
|
||||
requirements:
|
||||
- StormSSH
|
||||
notes:
|
||||
|
@ -207,6 +212,7 @@ class SSHConfig():
|
|||
strict_host_key_checking=self.params.get('strict_host_key_checking'),
|
||||
user_known_hosts_file=self.params.get('user_known_hosts_file'),
|
||||
proxycommand=self.params.get('proxycommand'),
|
||||
host_key_algorithms=self.params.get('host_key_algorithms'),
|
||||
)
|
||||
|
||||
# Convert True / False to 'yes' / 'no' for usage in ssh_config
|
||||
|
@ -297,6 +303,7 @@ def main():
|
|||
group=dict(default=None, type='str'),
|
||||
host=dict(type='str', required=True),
|
||||
hostname=dict(type='str'),
|
||||
host_key_algorithms=dict(type='str', no_log=False),
|
||||
identity_file=dict(type='path'),
|
||||
port=dict(type='str'),
|
||||
proxycommand=dict(type='str', default=None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue