# Hosts file and security issues

**URL:** <https://forum.ansible.com/t/hosts-file-and-security-issues/24078>\
**Category:** Ansible Project\
**Created:** [March 28, 2017, 7:47am UTC](https://forum.ansible.com/t/hosts-file-and-security-issues/24078 "2017-03-28T07:47:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Buttu](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Marco\_Buttu](https://forum.ansible.com/u/Marco_Buttu)\
**Post date:** [March 28, 2017, 7:47am UTC](https://forum.ansible.com/t/hosts-file-and-security-issues/24078/1 "2017-03-28T07:47:55Z")

</div>

Hi all,

I have a public github repository for my ansible project. The hosts file has the _private_ IP addresses (192.168…) of the production machines. Do you think this could be risky and it would be better to put the project in a private github repository?

Thanks, Marco

---

<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:** [March 28, 2017, 1:36pm UTC](https://forum.ansible.com/t/hosts-file-and-security-issues/24078/2 "2017-03-28T13:36:42Z")

</div>

It depends what you plan on doing.  
There are circumstances where having a publicly available repository  
makes sense.  
For instance if you run a conference and want to offer collaboration.  
With a public repo participants can create pull requests and help fix things.

[https://github.com/wandsdn/nznog-ansible](https://github.com/wandsdn/nznog-ansible)

Most people however will have private repositories to store their  
infrastructure code.

Offtopic: private repos in GitHub aren't for free anymore...

Dick
