Im generating a hosts file based on my inventory

Fix the template
https://gist.github.com/vbotka/31cdd229878a72780a72ea412252ab95

* Expand the items one by one
* Take the first item of *ansible_all_ipv4_addresses* (if this is what
  you want)