veselahouba.openssl
OpenSSL
Ansible role for managing simple self-signed SSL infrastructure.
Dependencies
N/A
Usage
Install role
ansible-galaxy install veselahouba.openssl
Using requirements.yml is recommended.
Configuration
Following variables makes sense to check:
openssl_ca_controller: Put inventory hostname of your CA hereopenssl_cert_group: Put hosts which should have SSL cert generated into this groupopenssl_cert_cn: Override on host level, otherwiseansible_fqdnwill be used as default
Example
inventory
[ca]
ca01
[ssl_hosts]
node01
node02
playbook
- name: Deploy OpenSSL infrastructure
become: true
hosts: all
roles:
- veselahouba.openssl
vars:
openssl_ca_controller: ca01
openssl_cert_group: ssl_hosts
Results in
- CA deployed to
/opt/ssl/onca01host - Certs for
node01andnode02signed and saved onca01(including keys) - Certs for
node01andnode02deployed to/opt/ssl/certificateson respective machines. - CA public part deployed to
/opt/ssl/certificates/ca.crton node01/node02. So it's not best idea to call your CA hostca;)
More info
For more detailed info and options consult defaults/main.yml file
Install
ansible-galaxy install veselahouba.opensslLicense
Unknown
Downloads
271
Owner
Automate everything
