Restructured webserver optimation roles

This commit is contained in:
2025-07-12 18:08:44 +02:00
parent 46bba3564d
commit f15f498c1d
15 changed files with 19 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
---
- name: "Include domains redirects"
include_tasks: redirect-domain.yml
vars:
domain: "{{ item.source }}"
target: "{{ item.target }}"
loop: "{{domain_mappings}}"

View File

@@ -0,0 +1,9 @@
- name: "include task receive certbot certificate"
include_role:
name: srv-web-6-6-tls-core
- name: "Deploying NGINX redirect configuration for {{ domain }}"
template:
src: redirect.domain.nginx.conf.j2
dest: "{{ nginx.directories.http.servers }}{{ domain }}.conf"
notify: restart nginx