mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
16 lines
583 B
YAML
16 lines
583 B
YAML
{# Recieves https certificate and setup proxy with domain replace #}
|
|
|
|
- name: "include role receive certbot certificate"
|
|
include_role:
|
|
name: nginx-https-get-cert
|
|
vars:
|
|
domain: "{{domains[application_id]}}"
|
|
|
|
- name: configure {{domains[application_id]}}.conf
|
|
template:
|
|
src: "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2"
|
|
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
|
|
notify: restart nginx
|
|
vars:
|
|
nginx_docker_reverse_proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{domains[application_id]}}';"
|