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

Get inithost to work with Ansible 1.9.x

parent 33c97d22
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ frontend https-in
{% for host in groups['all'] %}
{% if (hostvars[host]['proxy_domains']) or (hostvars[host]['proxy_ssl_domains']) or (hostvars[host]['proxy_crm_domains']) %}
backend backend_{{host}}
server server_{{host}} {{hostvars[host]['ansible_default_ipv4']['address']}}:80 maxconn 32
server server_{{host}} {{hostvars[host]['ansible_default_ipv4']['address']|default(hostvars[host]['static_ipv4'])}}:80 maxconn 32
{% endif %}
{% endfor %}
......
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