Skip to content

ansible-offline-installInstall Ansible with no internet, in one command

Ansible packaged into a single offline bundle - copy it to your air-gapped machine, run one command, done. No network needed during installation.

Terminal illustration of running install.sh on an offline server

Running in 60 seconds ​

bash
# 1. Extract (pick the right bundle in the platform matrix first,
#    and verify it with the .sha256 file from the download page)
tar xf ansible-offline-install-2.0.0-el9-x86_64-py311.tar.gz
cd ansible-offline-install-2.0.0-bundle

# 2. Install - fully offline, self-verifies at the end
bash install.sh

# 3. Confirm
ansible --version

What this does, in plain words ​

Many company and datacenter servers are not allowed to reach the internet (an "air-gapped" environment). On such a machine, pip install ansible always fails, because it needs to download packages.

This project works around that in three steps:

  1. On a computer with internet access, pack everything needed into one archive file (or simply download a ready-made, tested bundle from this project, see Quick Start).
  2. Copy that file into the intranet (USB stick, bastion host, internal file server - anything works).
  3. On the offline server, run the installer inside the bundle. Ansible goes into a dedicated folder, nothing on the system is modified, and deleting that folder uninstalls it completely.

Source repositories and mirrors ​

The project is published on four platforms with identical content; the mirrors are usually faster for downloads inside China:

PlatformURLNotes
GitHubhttps://github.com/ghl1024/ansible-offline-installPrimary repository: development and releases
Giteehttps://gitee.com/ghl1024/ansible-offline-installChina mirror, releases auto-synced via CNB
GitCodehttps://gitcode.com/haydenguo/ansible-offline-installChina mirror
CNBhttps://cnb.cool/ghl1024/ansible-offline-installChina mirror

💡 Feedback & Community ​

Questions or new ideas: open an Issue in the primary repository - you can also browse Issues for problems others hit and their solutions. If you can, include your OS version (the output of cat /etc/os-release) and the error message you saw.

  • Or scan to join the community group:

Releaseansible-core 2.18.19Python >= 3.118 offline bundlesLicense MIT

A speck of dust from an era becomes a mountain when it lands on one person