This commit is contained in:
2026-03-12 12:41:28 +01:00
parent 87755ef08e
commit 64c7b6c310
12 changed files with 539 additions and 0 deletions

43
templates/certbot.md.j2 Normal file
View File

@@ -0,0 +1,43 @@
{{ certbot_message | default (admin_message ) | comment }}
# Certbot
Certbot {{ __certbot_version | regex_replace('^.*certbot ([\\w\\.\\-]+).*?$', '\\1') }} is installed on host {{ inventory_hostname }}
For all certs helper scripts (/usr/local/bin/certbot-[domainname].sh) and a cronjob (to update the certs) are installed.
{% if certbot_webserver is defined %}
The Webserver "{{ certbot_webserver }}" is defined as the default one which interacts with the certbot plugin.
{% endif %}
## Certs
{{ __certbot_certificates.stdout }}
## Facts
{% if certbot_facts | default(false) %}
Facts are saved on the host in these files:
- /etc/ansible/facts.d/certbot.json
- /etc/ansible/facts.d/certbot.certificates.yml
### Update facts without Ansible
To update the facts run:
certbot certificates | /opt/ansible-facts-venv/bin/python3 /usr/local/bin/ansible_certbot_parse_facts.py
{% else %}
Facts are not saved on the host. To enable this set certbot_facts to true in your inventory.
{% endif %}
---
Any Questions?
**Linux-Server-Admin.com**