Solved certificate bug

This commit is contained in:
2025-04-29 03:01:45 +02:00
parent e5e394d470
commit 25952fc7e9
11 changed files with 28 additions and 35 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: nginx-https-get-cert
- name: configure nginx redirect configurations
template:
src: redirect.domain.nginx.conf.j2
dest: "{{ nginx.directories.http.servers }}{{ domain }}.conf"
notify: restart nginx