# How about creating a hostname module, which sets a system's hostname?

**URL:** <https://forum.ansible.com/t/how-about-creating-a-hostname-module-which-sets-a-systems-hostname/13357>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 24, 2013, 3:56pm UTC](https://forum.ansible.com/t/how-about-creating-a-hostname-module-which-sets-a-systems-hostname/13357 "2013-08-24T15:56:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiroaki\_Nakamura](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Post date:** [August 24, 2013, 3:56pm UTC](https://forum.ansible.com/t/how-about-creating-a-hostname-module-which-sets-a-systems-hostname/13357/1 "2013-08-24T15:56:20Z")

</div>

Hi, all.

How about creating a hostname module, which sets a system’s hostname?  
I implemented a prototype which works only on CentOS, RedHat, Debian and Ubuntu.

[https://github.com/hnakamur/ansible/blob/hostname\_module/library/system/hostname](https://github.com/hnakamur/ansible/blob/hostname_module/library/system/hostname)

Feedbacks are welcome.

Hiroaki

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 24, 2013, 4:58pm UTC](https://forum.ansible.com/t/how-about-creating-a-hostname-module-which-sets-a-systems-hostname/13357/2 "2013-08-24T16:58:01Z")

</div>

It’s been discussed before and I’m open to it.

The right way to get this reviewed would be to submit a pull request to the github project.

Thanks!
