title: Ansible gather IPs of nodes in cluster
body: <p>Here is a simple cluster inventory:</p>
  
  <pre><code>[cluster]
  host1
  host2 
  host3
  </code></pre>
  
  <p>Each host has an <code>interface</code> configured with ipv4 address. This information could be gathered with <code>setup</code> module and will be in <code>ansible_facts.ansible_{{ interface }}.ipv4.address</code>.</p>
  
  <p>How do to get IPv4 addresses for <code>interface</code> from each individual host and make them available to each host in <code>cluster</code> so that each host knows all cluster IPs?</p>
  
  <p>How this could be implemented in a role?</p>