From 2764d8dac8485ac2bae44cac3325dec96e52a5f9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 23 Mar 2026 21:12:53 +0100 Subject: [PATCH] Document bcrypt dependency. (#989) (cherry picked from commit bb216ed164e319e44f459839f2dbabe54b82c061) --- plugins/modules/openssh_keypair.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules/openssh_keypair.py b/plugins/modules/openssh_keypair.py index 7f4bd678..33e4c6f8 100644 --- a/plugins/modules/openssh_keypair.py +++ b/plugins/modules/openssh_keypair.py @@ -21,6 +21,7 @@ requirements: - ssh-keygen (if O(backend=openssh)) - cryptography >= 2.6 (if O(backend=cryptography) and OpenSSH < 7.8 is installed) - cryptography >= 3.0 (if O(backend=cryptography) and OpenSSH >= 7.8 is installed) + - bcrypt (if O(backend=cryptography) and O(passphrase) is used) extends_documentation_fragment: - ansible.builtin.files - community.crypto.attributes @@ -78,6 +79,7 @@ options: - Passphrase used to decrypt an existing private key or encrypt a newly generated private key. - Passphrases are not supported for O(type=rsa1). - Can only be used when O(backend=cryptography), or when O(backend=auto) and a required C(cryptography) version is installed. + Note that depending on the cryptography version, the C(bcrypt) package is also needed. type: str version_added: 1.7.0 private_key_format: