# Host Module

**URL:** <https://forum.ansible.com/t/host-module/15037>\
**Category:** Ansible Project\
**Created:** [April 17, 2014, 1:42am UTC](https://forum.ansible.com/t/host-module/15037 "2014-04-17T01:42:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Wolstenholme](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Paul\_Wolstenholme](https://forum.ansible.com/u/Paul_Wolstenholme)\
**Post date:** [April 17, 2014, 1:42am UTC](https://forum.ansible.com/t/host-module/15037/1 "2014-04-17T01:42:49Z")

</div>

I’ve just upgrade to Ansible 1.5.4. It’s awesome. I had been using the host module in the version I had upgrade from. Just wondering what the status of the host module. Is it permanently dead.

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [April 17, 2014, 1:57am UTC](https://forum.ansible.com/t/host-module/15037/2 "2014-04-17T01:57:53Z")

</div>

Thanks!

Host module was pulled due to non-workiness in a development version IIRC, of which form of non-workiness, I don’t particularly remember.

I think a lot of it had to do with not understanding the topology of the host file and being rather line oriented, such as if you remove something that is a record or an alias, what does it do with the other aliases or records.

I’d _possibly_ be open to including a working one, though I do generally feel /etc/host files are better managed with templates most of the time.

It might take some doing.

---

<div class="post-metadata">

**Author:** ![Paul\_Wolstenholme](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Paul\_Wolstenholme](https://forum.ansible.com/u/Paul_Wolstenholme)\
**Post date:** [April 17, 2014, 7:54pm UTC](https://forum.ansible.com/t/host-module/15037/3 "2014-04-17T19:54:27Z")

</div>

If I recall correctly, I originally used templates for the purpose. Sometimes it is easy to get carried away trying to use every possible module 🙂 I’ve seen people get a bit fancy with lineinfile as well ([https://gist.github.com/rothgar/8793800](https://gist.github.com/rothgar/8793800)). But, I think I’ll go back to using the templates module.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [April 17, 2014, 10:17pm UTC](https://forum.ansible.com/t/host-module/15037/4 "2014-04-17T22:17:37Z")

</div>

Yay, a convert! 🙂

It’s definitely way easier.
