An open API service indexing awesome lists of open source software.

https://github.com/zerwes/ansible-role-certbot

letsencrypt.org certificate handling using certbot
https://github.com/zerwes/ansible-role-certbot

ansible ansible-role certbot certificate letsencrypt open-source

Last synced: 3 months ago
JSON representation

letsencrypt.org certificate handling using certbot

Awesome Lists containing this project

README

          

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)

ansible-role-certbot
====================

Will just generate letsencrypt.org certificates using certbot and webroot on debian-based systems.

It will not configure apache etc.

As certbot requires a working apache in order to validate domains, I use::

roles:
- { role: geerlingguy.apache, tags: apache, apache_ignore_missing_ssl_certificate: false } # first run to configure apache http
- { role: certbot, tags: certbot }
- { role: geerlingguy.apache, tags: apache, apache_ignore_missing_ssl_certificate: true } # second run after cert creation / renewal

Vars
----

certbot__email: test@nosuchdomain.xyz

# map of cert name => map webroot => list of names
# for each maincertname a cert will be generated using the webroot map => domainname as names
certbot__certs:
dom1.tld1:
/srv/www/dom1:
- dom1.tld1
- a.dom1.tld1
- b.dom1.tld1
- a.dom2.tld2
/srv/www/dom3
- dom3.tld3
dom2.tld2:
/srv/www/dom2
- dom2.tld2

more VARs can be found in [defaults/main.yml](defaults/main.yml)