mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Added get_domain function
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
include_role:
|
||||
name: nginx-https-get-cert-modify-all
|
||||
vars:
|
||||
domain: "{{domains[application_id]}}"
|
||||
domain: "{{domains | get_domain(application_id)}}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "generate {{domains[application_id]}}.conf"
|
||||
- name: "generate {{domains | get_domain(application_id)}}.conf"
|
||||
template:
|
||||
src: "nginx.conf.j2"
|
||||
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
|
||||
dest: "{{nginx.directories.http.servers}}{{domains | get_domain(application_id)}}.conf"
|
||||
notify: restart nginx
|
@@ -1,6 +1,6 @@
|
||||
server
|
||||
{
|
||||
server_name {{domains[application_id]}};
|
||||
server_name {{domains | get_domain(application_id)}};
|
||||
|
||||
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
application_id: "file_server"
|
||||
domain: "{{ domains[application_id] }}"
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
Reference in New Issue
Block a user