Ensure consistent SSH key format with idempotent Ed25519 key regeneration (#932) (#933)

* Ensure consistent SSH key format with idempotent Ed25519 key regeneration

* Update plugins/modules/openssh_keypair.py



* removed extra whitespace

---------


(cherry picked from commit b2ab04861e)

Co-authored-by: Aditya Putta <puttaa@yahoo.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-07-11 12:35:16 +02:00
committed by GitHub
parent b1dfcf89a4
commit d0099b4f3e

View File

@@ -164,6 +164,13 @@ EXAMPLES = r"""
path: /tmp/id_ssh_rsa
force: true
- name: Regenerate SSH keypair only if format or options mismatch
community.crypto.openssh_keypair:
path: /home/devops/.ssh/id_ed25519
type: ed25519
regenerate: full_idempotence
private_key_format: ssh
- name: Generate an OpenSSH keypair with a different algorithm (dsa)
community.crypto.openssh_keypair:
path: /tmp/id_ssh_dsa