# how to get Host IPs

**URL:** <https://forum.ansible.com/t/how-to-get-host-ips/30358>\
**Category:** Ansible Project\
**Created:** [May 17, 2019, 7:49am UTC](https://forum.ansible.com/t/how-to-get-host-ips/30358 "2019-05-17T07:49:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SarathChandra\_Bhaska](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@SarathChandra\_Bhaska](https://forum.ansible.com/u/SarathChandra_Bhaska)\
**Post date:** [May 17, 2019, 7:49am UTC](https://forum.ansible.com/t/how-to-get-host-ips/30358/1 "2019-05-17T07:49:07Z")

</div>

hi,

this is sarath, i have a group with 2 ips. i want to populate those 2 IPs once by one in ansible content module. how can i do that.

i used {{ ansible\_facts[“eth0”][“ipv4”][“address”] }} but in the content file i m getting only one ip not 2 ips in content module. can some one help in this regard.
