diff options
author | Gilad Bar Orion <bar.orion@gmail.com> | 2019-03-25 23:06:41 +0200 |
---|---|---|
committer | Alicia Cozine <879121+acozine@users.noreply.github.com> | 2019-03-25 16:06:41 -0500 |
commit | 331c68d1d903dcb34d3fe21df6095756183a7bbb (patch) | |
tree | acd2651d551190ce8a5c37768c029371fb96dfb2 | |
parent | 942b2646c2cd34c70499de13fa644ea145f591ba (diff) | |
download | ansible-331c68d1d903dcb34d3fe21df6095756183a7bbb.tar.gz |
pip: add an example of an offline installation (#54327)
* pip: add an example of an offline installation
* remove whitespaces from blank lines
-rw-r--r-- | lib/ansible/modules/packaging/language/pip.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ansible/modules/packaging/language/pip.py b/lib/ansible/modules/packaging/language/pip.py index 665af6f989..b20d5b3861 100644 --- a/lib/ansible/modules/packaging/language/pip.py +++ b/lib/ansible/modules/packaging/language/pip.py @@ -190,6 +190,11 @@ EXAMPLES = ''' requirements: /my_app/requirements.txt extra_args: -i https://example.com/pypi/simple +# Install specified python requirements offline from a local directory with downloaded packages. +- pip: + requirements: /my_app/requirements.txt + extra_args: "--no-index --find-links=file:///my_downloaded_packages_dir" + # Install (Bottle) for Python 3.3 specifically,using the 'pip-3.3' executable. - pip: name: bottle |