# update /etc/hosts.allow

**URL:** <https://forum.ansible.com/t/update-etc-hosts-allow/35034>\
**Category:** Ansible Project\
**Created:** [April 22, 2021, 9:01am UTC](https://forum.ansible.com/t/update-etc-hosts-allow/35034 "2021-04-22T09:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekar\_reddy](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@shekar\_reddy](https://forum.ansible.com/u/shekar_reddy)\
**Post date:** [April 22, 2021, 9:01am UTC](https://forum.ansible.com/t/update-etc-hosts-allow/35034/1 "2021-04-22T09:01:46Z")

</div>

Hi All,

Please guide me using ansible how to update below entries into /etc/hosts.allow.

snmpd: 127.0.0.1

snmpd: [xxxxx.example.com](http://xxxxx.example.com)

Regards,  
Shekar

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 22, 2021, 12:07pm UTC](https://forum.ansible.com/t/update-etc-hosts-allow/35034/2 "2021-04-22T12:07:48Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html)
