mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Refactored server roles for better readability
This commit is contained in:
		| @@ -5,5 +5,5 @@ | ||||
| - name: "Deploying NGINX redirect configuration for '{{ domain }}'" | ||||
|   template: | ||||
|     src:  redirect.domain.nginx.conf.j2 | ||||
|     dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domain }}.conf" | ||||
|     dest: "{{ [ NGINX.DIRECTORIES.HTTP.SERVERS, domain ~ '.conf'] | path_join }}" | ||||
|   notify: restart openresty | ||||
| @@ -1,6 +1,6 @@ | ||||
| server { | ||||
|   server_name {{ domain }}; | ||||
|   {% include 'roles/srv-letsencrypt/templates/ssl_header.j2' %} | ||||
|   {% include 'roles/sys-svc-letsencrypt/templates/ssl_header.j2' %} | ||||
|  | ||||
|   return 301 https://{{ target }}$request_uri; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user