Warning: This library has been deprecated and is no longer maintained. It will not receive any further security patches, features, or bug fixes and is preserved here at GitHub for archival purposes. If you want to use it, we suggest forking the repository and auditing the codebase before use. For more information contact us at info@stackbuilders.com.
Recommended Roles:
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.