changed task structure

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-08 18:22:28 +01:00
parent 9ef20b4bf8
commit f717facf41
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
---
- name: "include tasks mybb-proxy-domain.yml"
include_tasks: mybb-proxy-domain.yml
loop: "{{ domains + [mybb_main_domain] }}"
- name: "include tasks create-proxy-with-domain-replace.yml"
include_tasks: create-proxy-with-domain-replace.yml
loop: "{{ domains + [source_domain] }}"
loop_control:
loop_var: domain

View File

@ -3,4 +3,4 @@ docker_compose_instance_directory: "{{path_docker_compose_instances}}mybb/"
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
target_mount_conf_d_directory: "/etc/nginx/conf.d/"
mybb_main_domain: "mybb.{{top_domain}}"
source_domain: "mybb.{{top_domain}}"

View File

@ -4,4 +4,4 @@
- name: "include task create-domain-conf.yml"
include_tasks: create-domain-conf.yml
vars:
nginx_docker_reverse_proxy_extra_configuration: "sub_filter '{{mybb_main_domain}}' '{{domain}}';"
nginx_docker_reverse_proxy_extra_configuration: "sub_filter '{{source_domain}}' '{{domain}}';"