Commit 9ee23568 authored by Ross McDonald's avatar Ross McDonald
Browse files

Fixed join parameter issue.

parent c21e8f85
......@@ -6,6 +6,6 @@ INFLUXD_OPTS="-join {% for host in groups['all'] if hostvars[host]['ansible_host
{% else %}
VAGRANT=false
{% if hostvars[groups['influxdb'][0]]['ansible_hostname'] != ansible_hostname %}
INFLUXD_OPTS="-join {% for host in groups['influxdb'] if hostvars[host]['ansible_hostname'] != ansible_hostname %}{% if loop.index0 <= 1 %}{{ ansible_all_ipv4_addresses|last }}:{{ influxdb_meta_http_port }}{% if not loop.index > 1 %},{% endif %}{% endif %}{% endfor %}"
INFLUXD_OPTS="-join {% for host in groups['influxdb'] if hostvars[host]['ansible_hostname'] != ansible_hostname %}{% if loop.index0 <= 1 %}{{ hostvars[host]['ansible_all_ipv4_addresses']|last }}:{{ influxdb_meta_http_port }}{% if not loop.index > 1 %},{% endif %}{% endif %}{% endfor %}"
{% endif %}
{% endif %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment