From cd70a95da4d574a4da380aa14bb59618b181050e Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 15 Jan 2018 08:57:32 +0100 Subject: [PATCH] ansible-inventories/zehnder#208 Allow to avoid drupal domains in /etc/hosts --- templates/etc_hosts.jinja2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/etc_hosts.jinja2 b/templates/etc_hosts.jinja2 index 177f6ca..be52347 100644 --- a/templates/etc_hosts.jinja2 +++ b/templates/etc_hosts.jinja2 @@ -34,6 +34,7 @@ ff02::2 ip6-allrouters {% endif %} {% if ip %} {{ ip }} {{ host }} +{% if drupal_domains_in_hosts|default(true) %} {% for drupal in hostvars[host]['drupal_settings']|default([]) %} {% for domain in drupal.domains|default([]) %} {{ ip }} {{ domain.domain }} @@ -44,6 +45,7 @@ ff02::2 ip6-allrouters {% endfor %} {% endif %} {% endif %} +{% endif %} {% endfor %} {% if commonauth_extras is defined %} -- GitLab