felipegirotti / ansible-role-certbot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Shell 100.0%