Giter Club home page Giter Club logo

ansible-role-offline-pip's Introduction

Offline pip Ansible Role

Stand With Ukraine

Install Python pip into air-gapped and offline environments

Requirements

  • Tested and probably requires Python 3
  • Requires pip source archive somewhere on the local computer. See example how to specify

Role Variables

Check defaults/main.yml for all variables.

How to use

  1. Install
ansible-galaxy install chaliy.offline_pip
  1. Download pip source archive. For example, from https://pypi.org/project/pip/#files
mkdir ./.offline
wget https://files.pythonhosted.org/packages/ce/ea/9b445176a65ae4ba22dce1d93e4b5fe182f953df71a145f557cffaffc1bf/pip-19.3.1.tar.gz -P ./.offline
  1. Optionally download wheels
pip wheel --wheel-dir=./.offline/wheels docker jsondiff
  1. Specify pip_tar_path, pip_wheels_path and pip_names in your playbook
  2. Run playbook

NOTE: offline-playbook.yml is an example playbook that downloads pip and wheels offline

Example Playbook

- hosts: all
  roles:
  - role: chaliy.offline_pip
    pip_tar_path: ./.offline/pip-19.3.1.tar.gz
- hosts: all
  roles:
  - role: chaliy.offline_pip
    pip_tar_path: ./.offline/pip-19.3.1.tar.gz
    pip_wheels_path: ./.offline/wheels
    pip_names:
    - docker
    - jsondiff

Development

poetry install
make test

License

MIT (Except russians)

ansible-role-offline-pip's People

Contributors

chaliy avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.