Skip to content

Ansible role for generating SSL certificates using certbot

License

Notifications You must be signed in to change notification settings

rudolfolah/ansible-role-letsencryptssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

letsencryptssl

Ansible role for setting up certbot and creating a certificate for a domain.

graph TB
A[Install certbot] -- setup --> B((Create symlink for Certbot binary))
B -- generate_cert --> C(Check if the certificate was already generated)
C -- generate_cert --> D(Generate certificate manually)
Loading

Requirements

To use this role, you need to install the snap community role. You can install it using the following command:

ansible-galaxy collection install community.general

Role Variables

The role uses the following parameters:

  • email: The email address to use for the certificate.
  • domain: The domain for which the certificate should be created.

Dependencies

This role depends on the following collections:

  • community.general
    • community.general.snap

Example Playbook

Here's an example playbook that shows how to use the role:

- hosts: servers
  roles:
    - role: letsencryptssl
      email: your_email@example.com
      domain: example.com

License

This role is licensed under the MIT License.

Author Information

This role was created by Rudolf Olah.