mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Renamed webserver roles to more speakable names
This commit is contained in:
@@ -9,7 +9,7 @@ This Ansible role configures Nginx to perform 301 redirects from one domain to a
|
||||
|
||||
## Dependencies
|
||||
|
||||
- `srv-web-7-6-https`: A role for setting up HTTPS for Nginx
|
||||
- `srv-https-stack`: A role for setting up HTTPS for Nginx
|
||||
- `letsencrypt`: A role for managing SSL certificates with Let's Encrypt
|
||||
|
||||
## Author Information
|
||||
|
@@ -1,8 +1,8 @@
|
||||
- block:
|
||||
- name: Include dependency 'srv-web-7-6-https'
|
||||
- name: Include dependency 'srv-https-stack'
|
||||
include_role:
|
||||
name: srv-web-7-6-https
|
||||
when: run_once_srv_web_7_6_https is not defined
|
||||
name: srv-https-stack
|
||||
when: run_once_srv_https_stack is not defined
|
||||
- include_tasks: utils/run_once.yml
|
||||
when: run_once_web_opt_rdr_domains is not defined
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
- name: "include task receive certbot certificate"
|
||||
include_role:
|
||||
name: srv-web-6-6-tls-core
|
||||
name: srv-tls-core
|
||||
|
||||
- name: "Deploying NGINX redirect configuration for '{{ domain }}'"
|
||||
template:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
server {
|
||||
server_name {{ domain }};
|
||||
{% include 'roles/srv-web-7-7-letsencrypt/templates/ssl_header.j2' %}
|
||||
{% include 'roles/srv-letsencrypt/templates/ssl_header.j2' %}
|
||||
|
||||
return 301 https://{{ target }}$request_uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user