Files
computer-playbook/roles/web-app-mybb/tasks/setup-domain.yml

14 lines
555 B
YAML

- name: "include role receive certbot certificate"
include_role:
name: srv-web-6-6-tls-core
vars:
domain: "{{ domains | get_domain(application_id) }}"
- name: configure {{ domains | get_domain(application_id) }}.conf
template:
src: "roles/srv-proxy-7-4-core/templates/vhost/basic.conf.j2"
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
notify: restart openresty
vars:
proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{ domains | get_domain(application_id) }}';"