Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pimvh/certbot
Ansible role to configure certbot
https://github.com/pimvh/certbot
ansible certbot molecule-tested role tls
Last synced: about 1 month ago
JSON representation
Ansible role to configure certbot
- Host: GitHub
- URL: https://github.com/pimvh/certbot
- Owner: pimvh
- License: gpl-3.0
- Created: 2022-11-26T21:26:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T18:51:33.000Z (7 months ago)
- Last Synced: 2024-05-20T22:10:56.634Z (7 months ago)
- Topics: ansible, certbot, molecule-tested, role, tls
- Language: Jinja
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Molecule test](https://github.com/pimvh/certbot/actions/workflows/test.yaml/badge.svg)
# Requirements1. Ansible installed:
```
sudo apt install python3
python3 -m ensurepip --upgrade
pip3 install ansible
```## Required variables
Review the variables as shown in defaults.
```
certbot_email: ""
certbot_domains: [] # domains to request a cert for
certbook_hooks: [] # scripts to run when requesting a new certificatecertbot_verbose: false
certbot_dry_run: false
certbot_hooks_enabled: true
```The ansible playbook will validate whether the variables exist that you defined before running.
# Example playbook
```
hosts:
- foo
roles:
- pimvh.certbot```
# TLDR - What will happen if I run this
- run systemd-failmail role, to configure service that can send out mails on failure.
- validate whether rules/some other variables are defined
- install certbot
- install hooks (when requested)
- edit and enable systemd service for certbot# Future improvements
- Support more type of hooks