diff --git a/changelogs/fragments/17_authorized_keys.yml b/changelogs/fragments/17_authorized_keys.yml new file mode 100644 index 0000000..ab430fa --- /dev/null +++ b/changelogs/fragments/17_authorized_keys.yml @@ -0,0 +1,3 @@ +--- +bugfixes: +- authorized_keys - Added FIDO2 security keys (https://github.com/ansible-collections/ansible.posix/issues/17). diff --git a/plugins/modules/authorized_key.py b/plugins/modules/authorized_key.py index d39f885..2959249 100644 --- a/plugins/modules/authorized_key.py +++ b/plugins/modules/authorized_key.py @@ -386,10 +386,12 @@ def parsekey(module, raw_key, rank=None): ''' VALID_SSH2_KEY_TYPES = [ - 'ssh-ed25519', + 'sk-ecdsa-sha2-nistp256@openssh.com', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521', + 'sk-ssh-ed25519@openssh.com', + 'ssh-ed25519', 'ssh-dss', 'ssh-rsa', ]