diff --git a/playbook-servers.yml b/playbook-servers.yml index f3ea0144..786926ec 100644 --- a/playbook-servers.yml +++ b/playbook-servers.yml @@ -208,7 +208,8 @@ roles: - role: docker-discourse vars: - domain: discourse.{{top_domain}} + domain: forum.{{top_domain}} + domains: "{{discourse_domains}}" http_port: 8020 - name: setup akaunting hosts diff --git a/roles/docker-discourse/tasks/main.yml b/roles/docker-discourse/tasks/main.yml index 3639e09a..9e7b8642 100644 --- a/roles/docker-discourse/tasks/main.yml +++ b/roles/docker-discourse/tasks/main.yml @@ -1,6 +1,9 @@ --- - name: "include tasks nginx-docker-proxy-domain.yml" include_tasks: nginx-docker-proxy-domain.yml + loop: "{{ domains }}" + loop_control: + loop_var: domain - name: "create {{docker_compose_instance_directory}}" file: