Skip to content
Snippets Groups Projects
Commit cd70a95d authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/zehnder#208 Allow to avoid drupal domains in /etc/hosts

parent 96e951d7
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment