title: ansible jinja2 concatenate IP addresses
body: <p>I would like to cocatenate a group of ips into a string. </p>
  
  <p><strong>example ip1:2181,ip2:2181,ip3:2181,etc</strong></p>
  
  <pre><code>{% for host in groups['zookeeper'] %}
     {{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}
  {% endfor %}
  </code></pre>
  
  <p>I have the above code, but can't seem to quite figure out how to concatenate into a string. </p>
  
  <p>searching for <strong>"Jinja2 concatenate"</strong> doesn't give me the info I need. </p>