mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Restructured webserver optimation roles
This commit is contained in:
7
roles/web-opt-rdr-domains/tasks/main.yml
Normal file
7
roles/web-opt-rdr-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/web-opt-rdr-domains/tasks/redirect-domain.yml
Normal file
9
roles/web-opt-rdr-domains/tasks/redirect-domain.yml
Normal 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
|
Reference in New Issue
Block a user