joshbenner.certbot

joshbenner.certbot

This is a guide to install and set up certbot, the official client for Let's Encrypt.

Requirements

  • You need to have git installed.
  • cron is needed if you want to use cron jobs.

Variables

Check defaults/main.yml for a full list of variables.

Essential variables:

  • certbot_account_email: Your email for certbot notifications.
  • certbot_agree_tos: You must agree to the terms of service.

Example Configuration

Here's an example of how to set it up:

certbot_account_email: [email protected]  # Your email address
certbot_version: v0.25.1  # Version of certbot to install
certbot_agree_tos: true  # Agree to terms of service

certbot_certs:  # List of certificates
  - name: main-site  # Name of the first site
    domains:
      - example.com  # Main domain
      - www.example.com  # Subdomain
    method: standalone  # Method to use for obtaining certificates
  - name: other-site  # Name of another site
    domains:
      - other.example.com  # Domain of the other site
    method: dns-route53  # Method to obtain certificates for this site
    env:  # Environment variables for AWS access
      AWS_ACCESS_KEY_ID: "{{ my_aws_access_key_id }}"  # Replace with your AWS access key
      AWS_SECRET_ACCESS_KEY: "{{ my_aws_secret_key }}"  # Replace with your AWS secret key

License

This project is licensed under the BSD license.

Informazioni sul progetto

Install and configure certbot

Installa
ansible-galaxy install joshbenner.certbot
Licenza
bsd-3-clause
Download
1.1k
Proprietario