Islandora-Devops.keymaster
Ansible Role: Keymaster
This Ansible role helps you copy keys to different roles on:
- Centos/RHEL 7.x
- Ubuntu Xenial
Role Variables
Here are the variables you can use, along with their default values:
# Directory where keys are stored.
ssl_key_directory: /opt/keys/claw
# Name of the public key file
ssl_key_public_file: public.key
# Name of the private key file
ssl_key_private_file: private.key
# Location to copy the private key to
ssl_key_private_output_path: /tmp/private.key
# Location to copy the public key to
ssl_key_public_output_path: /tmp/public.key
Usage
This role allows you to easily copy the same public or private keys to different server locations. You can reference the role itself or include it in other roles.
For example:
- name: Get SSL keys
include_role:
name: keymaster
vars:
ssl_key_public_output_path: "{{ my_public_key_path }}"
This will copy the public key managed by keymaster to the location specified by "{{ my_public_key_path }}".
To copy the private key, you can use the ssl_key_private_output_path
variable like this:
- name: Get SSL keys
include_role:
name: keymaster
vars:
ssl_key_private_output_path: "{{ webserver_app_jwt_key_path }}/private.key"
Dependencies
None
Example Playbook
- hosts: webservers
roles:
- { role: Islandora-Devops.keymaster }
License
MIT