1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[PR #8257/af1c5dd7 backport][stable-8] Add accept-new as valid option for ssh_config host key checking (#8267)

Add accept-new as valid option for ssh_config host key checking (#8257)

* Add accept-new as valid option for host key checking

* Add changelog fragment for #8257

* 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 af1c5dd785)

Co-authored-by: Maxopoly <max@dermax.org>
This commit is contained in:
patchback[bot] 2024-04-21 20:39:32 +02:00 committed by GitHub
parent 07953bb995
commit bc829f64bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- ssh_config - allow ``accept-new`` as valid value for ``strict_host_key_checking`` (https://github.com/ansible-collections/community.general/pull/8257).

View file

@ -88,7 +88,8 @@ options:
strict_host_key_checking: strict_host_key_checking:
description: description:
- Whether to strictly check the host key when doing connections to the remote host. - Whether to strictly check the host key when doing connections to the remote host.
choices: [ 'yes', 'no', 'ask' ] - The value V(accept-new) is supported since community.general 8.6.0.
choices: [ 'yes', 'no', 'ask', 'accept-new' ]
type: str type: str
proxycommand: proxycommand:
description: description:
@ -370,7 +371,7 @@ def main():
strict_host_key_checking=dict( strict_host_key_checking=dict(
type='str', type='str',
default=None, default=None,
choices=['yes', 'no', 'ask'] choices=['yes', 'no', 'ask', 'accept-new'],
), ),
controlmaster=dict(type='str', default=None, choices=['yes', 'no', 'ask', 'auto', 'autoask']), controlmaster=dict(type='str', default=None, choices=['yes', 'no', 'ask', 'auto', 'autoask']),
controlpath=dict(type='str', default=None), controlpath=dict(type='str', default=None),