# Installing Ansible on a Linux server without Internet

**URL:** <https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604>\
**Category:** Ansible Project\
**Created:** [May 30, 2016, 10:17am UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604 "2016-05-30T10:17:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubrecht.v.dalsen](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@hubrecht.v.dalsen](https://forum.ansible.com/u/hubrecht.v.dalsen)\
**Post date:** [May 30, 2016, 10:17am UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/1 "2016-05-30T10:17:17Z")

</div>

Hi there,

I recently used Ansible successfully on a machine with enternet access.  
I am now trying to use Ansible on a Linux master server that is completely locked down(no internet access at all)  
So I have downloaded a tarball from [releases.ansible.com](http://releases.ansible.com/), and looked at “[running form source](http://docs.ansible.com/ansible/intro_installation.html)” to get instructions to continue, without success.

the page just mentioned suggests the following command:  
source ./hacking/env-setup

…but neither ./hacking nor env-setup exists

Any one out there that could help me out here?

Kind Regards

Hubrecht

---

<div class="post-metadata">

**Author:** ![Mark\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Post date:** [June 10, 2016, 2:04pm UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/2 "2016-06-10T14:04:13Z")

</div>

It’s probably a better idea to download an RPM (or deb) for your distro, or the pip package, and install those.  
Then you don’t need to run the ‘env-setup’ script.  
Running ‘make install’ in the extracted directory you have now should also suffice.

---

<div class="post-metadata">

**Author:** ![Mister\_Jankz](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@Mister\_Jankz](https://forum.ansible.com/u/Mister_Jankz)\
**Post date:** [August 17, 2016, 4:21pm UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/3 "2016-08-17T16:21:40Z")

</div>

Mark,

I’ve been looking around for an RPM or pip package with all the dependencies wrapped in together. I have five RH6 servers on an isolated/closed network. I’ve, like Hubrecht, attempted to use the tarball to no avail. I’m getting an error about when the installation script (setup.py) tries to fetch pycrypto.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [August 19, 2016, 9:39am UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/4 "2016-08-19T09:39:23Z")

</div>

ansible 2.0 is in EPEL6

---

<div class="post-metadata">

**Author:** ![rybrown](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rybrown](https://forum.ansible.com/u/rybrown)\
**Post date:** [August 19, 2016, 3:49pm UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/5 "2016-08-19T15:49:25Z")

</div>

It’s usually not a great practice to bundle an RPM and all its deps. If you need an offline install, I’d recommend downloading the necessary RPMs (anisble, pycrypto, paramiko) and using either `yum localinstall` or `rpm -i` on the airgapped machines.

---

<div class="post-metadata">

**Author:** ![ASHUTOSH\_JOSHI](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ASHUTOSH\_JOSHI](https://forum.ansible.com/u/ASHUTOSH_JOSHI)\
**Post date:** [March 13, 2018, 7:38am UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/6 "2018-03-13T07:38:05Z")

</div>

Hi All,

There is no internet in linux server , would you please suggest how to install ansible on linux server .

---

<div class="post-metadata">

**Author:** ![Bernard\_Tremblay](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Bernard\_Tremblay](https://forum.ansible.com/u/Bernard_Tremblay)\
**Post date:** [August 2, 2018, 6:50pm UTC](https://forum.ansible.com/t/installing-ansible-on-a-linux-server-without-internet/21604/7 "2018-08-02T18:50:59Z")

</div>

Anybody found out a solution for a no-internet-installation ???  
I’m facing the same problem. I want to install ansible on a SLES 12sp3 server with absolutly no external access…  
I have fetched a tarbal of the current installation (ansible 2.6.2) but I dont’ know what’s the other stuff ansible need to work (dependencies) ?

The ideal would be to have a static package (a snap ?) that one can install and not disturb anything on the original server.

Regards,

BT
