diff --git a/templates/host_list b/templates/host_list
index 8eeb596d3dcf4d36962763cfafb2539799a0af8a..804d0cfb08dfc6cdeecafbd603764329082be8bf 100644
--- a/templates/host_list
+++ b/templates/host_list
@@ -3,13 +3,16 @@
 {% endfor %}
 {% for drupal in hostvars[item].drupal_settings|default([]) %}
 {% for domain in drupal.domains|default([]) %}
-{% if domain.route_by_domain|default(true) %}
 {% if domain.protocol|default('https') == 'http' %}
+{% if domain.route_by_domain|default(true) %}
 {{domain.domain}}
 {% for alias in domain.aliases|default([]) %}
 {{alias}}
 {% endfor %}
 {% endif %}
+{% for trusted_domain in domain.trusted_domains|default([]) %}
+{{trusted_domain}}
+{% endfor %}
 {% endif %}
 {% endfor %}
 {% endfor %}
diff --git a/templates/host_ssl_list b/templates/host_ssl_list
index 3c4326a5211f098d3e59e908f4a7f67d9060b0d8..02f2ddbd7e301e941795eb82940f5c6a1f7ac44a 100644
--- a/templates/host_ssl_list
+++ b/templates/host_ssl_list
@@ -3,13 +3,16 @@
 {% endfor %}
 {% for drupal in hostvars[item].drupal_settings|default([]) %}
 {% for domain in drupal.domains|default([]) %}
-{% if domain.route_by_domain|default(true) %}
 {% if domain.protocol|default('https') == 'https' %}
+{% if domain.route_by_domain|default(true) %}
 {{domain.domain}}
 {% for alias in domain.aliases|default([]) %}
 {{alias}}
 {% endfor %}
 {% endif %}
+{% for trusted_domain in domain.trusted_domains|default([]) %}
+{{trusted_domain}}
+{% endfor %}
 {% endif %}
 {% endfor %}
 {% endfor %}