hadrienpatte.self_signed_certificate
Ansible Role: Self-signed certificate
An Ansible Role that generates a TSL/SSL self-signed certificate.
Requirements
None.
Role Variables
self_signed_certificate_FQDN: list of Fully Qualified Domain Names (CN)
Private key variables
self_signed_certificate_key_path: directory where the private key will beself_signed_certificate_key_type: private key type, can beRSA(default) orDSAself_signed_certificate_key_size: private key bits, defaults to4096
Certificate Signing Request variables
self_signed_certificate_csr_path: directory where the certificate signing request will beself_signed_certificate_csr_digest: certificate signing request digest, defaults tosha512self_signed_certificate_email: certificate signing request email address (E)self_signed_certificate_city: certificate signing request locality name (L)self_signed_certificate_state: certificate signing request state or province name (ST)self_signed_certificate_country: certificate signing request country name (C)self_signed_certificate_organisation: certificate signing request organization name (O)self_signed_certificate_organizational_unit: certificate signing request organizational unit name (OU)
Certificate variables
self_signed_certificate_path: directory where the certificate will beself_signed_certificate_digest: certificate digest, defaults tosha512self_signed_certificate_not_after: the point in time at which the certificate stops being valid, defaults to+3650d(ten years)
Dependencies
None.
Example Playbook
- name: Generate self-signed certificate
hosts: all
roles:
- hadrienpatte.self_signed_certificate
License
MIT
Author Information
Install
ansible-galaxy install hadrienpatte.self_signed_certificateLicense
mit
Downloads
1.8k
Owner
Automation enthusiast
