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

@@ -62,15 +62,32 @@
set_fact:
service_provider: "{{ defaults_service_provider | combine(service_provider | default({}, true), recursive=True) }}"
- name: Collect all domains (domains, redirect sources + www)
set_fact:
all_domains: >-
{{
(
(
domains.values() | flatten
+ (redirect_domain_mappings | map(attribute='source') | list)
)
+ (
domains.values() | flatten
+ (redirect_domain_mappings | map(attribute='source') | list)
) | map('regex_replace', '^(.*)$', 'www.\\1') | list
) | unique | sort
}}
- name: "Merged Variables"
# Add new merged variables here
debug:
msg:
domains: "{{domains}}"
applications: "{{applications}}"
oidc: "{{oidc}}"
service_provider: "{{service_provider}}"
users: "{{users}}"
domains: "{{ domains }}"
applications: "{{ applications }}"
oidc: "{{ oidc }}"
service_provider: "{{ service_provider }}"
users: "{{ users }}"
all_domains: "{{ all_domains }}"
when: enable_debug | bool
- name: init root user