ansible/changelogs/fragments/64436-openssh_keypair-add-password-protected-key-check.yml
Maxim Babushkin da73bbd73c openssh_keypair - Add logic to handle password protected or broken key ()
* 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.
2019-12-02 08:12:38 +01:00

2 lines
85 B
YAML

bugfixes:
- openssh_keypair - add logic to handle password protected or broken key