Skip to content

Add saving private key ansible-vault encrypted #805

Open
@agowa

Description

@agowa
SUMMARY

Enable community.crypto.openssl_privatekey to save the private key using ansible-vault encryption.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.crypto.openssl_privatekey

ADDITIONAL INFORMATION

My current usage may be a bit unusual but what I was trying to do was create a task within the roll that generates the private key for an internal CA to sign stuff but store that private key within the playbook on the controller. Aka. If a private key does not exist within a specific variable name it'll create one and add an additional yaml file to the playbook that contains said variable with the newly generated private key so that it'll be persistent for future runs but still allow the playbook to be a template for multiple similar projects (It doesn't have to be a yaml file and a variable directly, just an ansible-vault encrypted file/asset would already be enough).

Also being able to have the module store the private key using ansible-vault encryption could be quite useful for a bunch of other usages as well as it is may more secure than just being able to secure it using a passphrase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions