@ -134,96 +134,98 @@ author:
'''
'''
EXAMPLES = '''
EXAMPLES = '''
# Install (Bottle) python package.
- name : Install bottle python package
- pip :
pip :
name : bottle
name : bottle
# Install (Bottle) python package on version 0.11.
- name : Install bottle python package on version 0.11
- pip :
pip :
name : bottle == 0.11
name : bottle == 0.11
# Install (bottle) python package with version specifiers
- name : Install bottle python package with version specifiers
- pip :
pip :
name : bottle > 0.10 , < 0.20 , != 0.11
name : bottle > 0.10 , < 0.20 , != 0.11
# Install multi python packages with version specifiers
- name : Install multi python packages with version specifiers
- pip :
pip :
name :
name :
- django > 1.11 .0 , < 1.12 .0
- django > 1.11 .0 , < 1.12 .0
- bottle > 0.10 , < 0.20 , != 0.11
- bottle > 0.10 , < 0.20 , != 0.11
# Install python package using a proxy - it doesn't use the standard environment variables, please use the CAPITALIZED ones below
- name : Install python package using a proxy
- pip :
# Pip doesn't use the standard environment variables, please use the CAPITALIZED ones below
pip :
name : six
name : six
environment :
environment :
HTTP_PROXY : ' 127.0.0.1:8080 '
HTTP_PROXY : ' 127.0.0.1:8080 '
HTTPS_PROXY : ' 127.0.0.1:8080 '
HTTPS_PROXY : ' 127.0.0.1:8080 '
# Install (MyApp) using one of the remote protocols (bzr+,hg+,git+,svn+). You do not have to supply '-e' option in extra_args.
# You do not have to supply '-e' option in extra_args
- pip :
- name : Install MyApp using one of the remote protocols ( bzr + , hg + , git + , svn + )
pip :
name : svn + http : / / myrepo / svn / MyApp #egg=MyApp
name : svn + http : / / myrepo / svn / MyApp #egg=MyApp
# Install MyApp using one of the remote protocols (bzr+,hg+,git+).
- name : Install MyApp using one of the remote protocols ( bzr + , hg + , git + )
- pip :
pip :
name : git + http : / / myrepo / app / MyApp
name : git + http : / / myrepo / app / MyApp
# Install (MyApp) from local tarball
- name : Install MyApp from local tarball
- pip :
pip :
name : file : / / / path / to / MyApp . tar . gz
name : file : / / / path / to / MyApp . tar . gz
# Install (Bottle) into the specified (virtualenv), inheriting none of the globally installed modules
- name : Install bottle into the specified ( virtualenv ) , inheriting none of the globally installed modules
- pip :
pip :
name : bottle
name : bottle
virtualenv : / my_app / venv
virtualenv : / my_app / venv
# Install (Bottle) into the specified (virtualenv), inheriting globally installed modules
- name : Install bottle into the specified ( virtualenv ) , inheriting globally installed modules
- pip :
pip :
name : bottle
name : bottle
virtualenv : / my_app / venv
virtualenv : / my_app / venv
virtualenv_site_packages : yes
virtualenv_site_packages : yes
# Install (Bottle) into the specified (virtualenv), using Python 2.7
- name : Install bottle into the specified ( virtualenv ) , using Python 2.7
- pip :
pip :
name : bottle
name : bottle
virtualenv : / my_app / venv
virtualenv : / my_app / venv
virtualenv_command : virtualenv - 2.7
virtualenv_command : virtualenv - 2.7
# Install (Bottle) within a user home directory.
- name : Install bottle within a user home directory
- pip :
pip :
name : bottle
name : bottle
extra_args : - - user
extra_args : - - user
# Install specified python requirements.
- name : Install specified python requirements
- pip :
pip :
requirements : / my_app / requirements . txt
requirements : / my_app / requirements . txt
# Install specified python requirements in indicated (virtualenv).
- name : Install specified python requirements in indicated ( virtualenv )
- pip :
pip :
requirements : / my_app / requirements . txt
requirements : / my_app / requirements . txt
virtualenv : / my_app / venv
virtualenv : / my_app / venv
# Install specified python requirements and custom Index URL.
- name : Install specified python requirements and custom Index URL
- pip :
pip :
requirements : / my_app / requirements . txt
requirements : / my_app / requirements . txt
extra_args : - i https : / / example . com / pypi / simple
extra_args : - i https : / / example . com / pypi / simple
# Install specified python requirements offline from a local directory with downloaded packages.
- name : Install specified python requirements offline from a local directory with downloaded packages
- pip :
pip :
requirements : / my_app / requirements . txt
requirements : / my_app / requirements . txt
extra_args : " --no-index --find-links=file:///my_downloaded_packages_dir "
extra_args : " --no-index --find-links=file:///my_downloaded_packages_dir "
# Install (Bottle) for Python 3.3 specifically,using the 'pip3.3' executable.
- name : Install bottle for Python 3.3 specifically , using the ' pip3.3 ' executable
- pip :
pip :
name : bottle
name : bottle
executable : pip3 .3
executable : pip3 .3
# Install (Bottle), forcing reinstallation if it' s already installed
- name : Install bottle , forcing reinstallation if it ' s already installed
- pip :
pip :
name : bottle
name : bottle
state : forcereinstall
state : forcereinstall
# Install (Bottle) while ensuring the umask is 0022 (to ensure other users can use it )
- name : Install bottle while ensuring the umask is 0022 ( to ensure other users can use it )
- pip :
pip :
name : bottle
name : bottle
umask : " 0022 "
umask : " 0022 "
become : True
become : True