mirror of https://github.com/ansible/ansible.git
openssh_keypair - Add logic to handle password protected or broken key (#64436)
* The ssh key may be created manually prior the task execution with a passphrase. And the task will be executed on the same key. * The ssh key may be broken and not usable. The module will check the private key and if the key is password protected or broken, it will be overridden. The check of the ssh key performed by retrieve the public key from the private key. Set the "self.force" check before the "isPrivateKeyValid" check. In case of any issue with the "isPrivateKeyValid" function, the user will be able to force the regeneration of the key with the "force: yes" argument.pull/65421/head
parent
a0b8b85fa5
commit
da73bbd73c
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- openssh_keypair - add logic to handle password protected or broken key
|
Loading…
Reference in New Issue