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