Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Ansible role to create Let's Encrypt certificates using the Certbot tool.

License

Notifications You must be signed in to change notification settings

stackbuilders/ansible-role-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

DEPRECATED - Certbot from Let's Encrypt

Ansible Galaxy

This Ansible role creates one or more Let's Encrypt certificates using Certbot.

Requirements

This role requires Ansible 2.3 or higher and the platform requirements are listed in the metadata file.

Install

ansible-galaxy install stackbuilders.certbot

Getting started

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.

Role variables

For all default variables, take a look at defaults/main.yml

Example playbook

- hosts: webservers
  become: yes
  roles:
    - role: stackbuilders.certbot
      certbot_domains: 'mydomain.com'
      certbot_email: 'alerts@mydomain.com'

License

MIT

Author Information

Stack Builders Inc.