mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved certificate bug
This commit is contained in:
7
roles/nginx-redirect-domains/tasks/main.yml
Normal file
7
roles/nginx-redirect-domains/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: "Include domains redirects"
|
||||
include_tasks: redirect-domain.yml
|
||||
vars:
|
||||
domain: "{{ item.source }}"
|
||||
target: "{{ item.target }}"
|
||||
loop: "{{domain_mappings}}"
|
9
roles/nginx-redirect-domains/tasks/redirect-domain.yml
Normal file
9
roles/nginx-redirect-domains/tasks/redirect-domain.yml
Normal 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
|
Reference in New Issue
Block a user