Implemented SAN via Letsencrypt and Certbot

This commit is contained in:
2025-04-28 16:47:51 +02:00
parent 0fc9c3e495
commit 04deeef385
28 changed files with 411 additions and 224 deletions

View File

@@ -23,7 +23,12 @@
when:
- mode_cleanup | bool
- run_once_nginx_domains_cleanup is not defined
ignore_errors: true
register: certbot_revoke_result
failed_when: >
certbot_revoke_result.rc != 0 and
'No certificate found with name' not in certbot_revoke_result.stderr
changed_when: >
certbot_revoke_result.rc == 0
# The deleting just works for the base domain
- name: "Delete Certbot certificate for {{ item }}"
@@ -36,7 +41,12 @@
when:
- mode_cleanup | bool
- run_once_nginx_domains_cleanup is not defined
ignore_errors: true
register: certbot_delete_result
failed_when: >
certbot_delete_result.rc != 0 and
'No certificate found with name' not in certbot_delete_result.stderr
changed_when: >
certbot_delete_result.rc == 0
- name: run the nginx_domains_cleanup role once
set_fact: