galaxyproject.self_signed_certs

Ansible Role for Self Signed Certificates

This is designed to work with galaxyproject.nginx to generate self-signed certificates as-needed. So something like

- name: Install and configure nginx
  hosts: webservers
  vars:
    nginx_servers:
      - vhost1
      - vhost2
    nginx_ssl_servers:
      - vhost1_ssl
      - vhost2_ssl
    nginx_ssl_role: galaxyproject.self_signed_certs
    openssl_domains:
      - vhost1.example.org
      - vhost2.example.org
  roles:
    - galaxyproject.nginx

Or, if you've got properly signed certificates (maybe using the CSRs generated from this role)

- name: Install and configure nginx
  hosts: webservers
  vars:
    ...
    openssl_self_sign: false # ADD THIS
    # And put your certificate(+chain) in files/certificates/{{ openssl_domains[0] }}.cer
    openssl_domains:
      - vhost1.example.org
      - vhost2.example.org
  roles:
    - galaxyproject.nginx

And that will copy those files into the right places! (But not restart the service for you, yet.)

License

GPLv3

Author Information

This role was written and contributed to by the following people:

About

Create some self-signed certificates

Install
ansible-galaxy install galaxyproject.self_signed_certs
GitHub repository
License
gpl-3.0
Downloads
842
Owner
Galaxy is an open, web-based platform for data-intensive research.