This Ansible role creates one or more Let's Encrypt certificates using Certbot.
This role requires Ansible 2.3 or higher and the platform requirements are listed in the metadata file.
ansible-galaxy install stackbuilders.certbot
You need to define the following variables:
{{ certbot_domains }}
is a comma-separated string of the domains you wish to create a certificate for. e.g.:'myexample.com,myexample.net'
{{ certbot_email }}
is the notifications email address that Certbot will use to send expiration notices.
For all default variables, take a look at defaults/main.yml
- hosts: webservers
become: yes
roles:
- role: stackbuilders.certbot
certbot_domains: 'mydomain.com'
certbot_email: 'alerts@mydomain.com'
MIT
Stack Builders Inc.