Installing Ansible on a Linux server without Internet

4,126 views
Skip to first unread message

hubrecht...@gmail.com

unread,
May 31, 2016, 8:12:52 AM5/31/16
to Ansible Project

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, and looked at "running form source" 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

Mark Janssen

unread,
Jun 10, 2016, 10:04:21 AM6/10/16
to ansible...@googlegroups.com
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/153bb277-22e9-40f4-a685-3ee8427c4ea4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark Janssen  --  maniac(at)maniac.nl
Unix / Linux Open-Source and Internet Consultant
Maniac.nl Sig-IO.nl Vps.Stoned-IT.com

Mister Jankz

unread,
Aug 18, 2016, 12:41:28 PM8/18/16
to Ansible Project
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?

Dick Davies

unread,
Aug 19, 2016, 5:39:32 AM8/19/16
to ansible list

ryb...@ansible.com

unread,
Aug 19, 2016, 11:50:30 AM8/19/16
to Ansible Project
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.

ASHUTOSH JOSHI

unread,
Mar 13, 2018, 3:38:05 AM3/13/18
to Ansible Project
Hi All,

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

Bernard Tremblay

unread,
Aug 2, 2018, 2:50:59 PM8/2/18
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages