- Ansible installed:
sudo apt install python3
python3 -m ensurepip --upgrade
pip3 install ansible
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 certificate
certbot_verbose: false
certbot_dry_run: false
certbot_hooks_enabled: true
The ansible playbook will validate whether the variables exist that you defined before running.
hosts:
- foo
roles:
- pimvh.certbot
- 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
- Support more type of hooks