benibr / ansible-role-certbot

Install certbot and manage certificates with ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install certbot with Ansible

Build Status

Installs certbot and configures certificates. For a complete setup with nginx see the full example.

Requirements

None.

Example playbook

- hosts: all
  become: yes

  roles:
  - certbot

  vars:
    certbot_mail: me@example.com
    certbot_certs:
      - host: example.com
      - host: foo.bar
        mail: overwrite@mail.com

Role variables

None of the variables below are required.

Variable Default Comment
certbot_mail required the account email
certbot_certs [] list of certs to request

For all options see defaults/main.yml

Development

You can use the Vagrantfile for local testing, just install vagrant and virtualbox and execute the following commands:

vagrant up
vagrant provision

License

MIT

About

Install certbot and manage certificates with ansible