mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
openssl_privatekey: add backup option (#53593)
* Add backup option to openssl_privatekey. * Add changelog fragment. * Make module available in remove(). * Add tests for backup. * Update lib/ansible/modules/crypto/openssl_privatekey.py Co-Authored-By: felixfontein <felix@fontein.de> * Update lib/ansible/modules/crypto/openssl_privatekey.py Co-Authored-By: felixfontein <felix@fontein.de> * Update lib/ansible/modules/crypto/openssl_privatekey.py Co-Authored-By: felixfontein <felix@fontein.de> * Update lib/ansible/modules/crypto/openssl_privatekey.py
This commit is contained in:
parent
3fa39ac818
commit
e00f315358
9 changed files with 81 additions and 11 deletions
|
@ -1220,7 +1220,7 @@ def main():
|
|||
module.exit_json(**result)
|
||||
|
||||
try:
|
||||
certificate.remove()
|
||||
certificate.remove(module)
|
||||
except CertificateError as exc:
|
||||
module.fail_json(msg=to_native(exc))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue