Commit 5a5d431f by Pedro Romano Committed by Michael DeHaan

Changes examples from using Flask to some other package (Bottle was chosen) as…

Changes examples from using Flask to some other package (Bottle was chosen) as per @mpdehaan's suggestion.
parent 4369fdcc
...@@ -72,8 +72,8 @@ EXAMPLES = ''' ...@@ -72,8 +72,8 @@ EXAMPLES = '''
# Examples from Ansible Playbooks # Examples from Ansible Playbooks
- easy_install: name=pip - easy_install: name=pip
# Install foo into the specified virtualenv. # Install Bottle into the specified virtualenv.
- easy_install: name=foo virtualenv=/webapps/myapp/venv - easy_install: name=bottle virtualenv=/webapps/myapp/venv
''' '''
def _is_package_installed(module, name, easy_install): def _is_package_installed(module, name, easy_install):
......
...@@ -104,23 +104,23 @@ author: Matt Wright ...@@ -104,23 +104,23 @@ author: Matt Wright
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Install (flask) python package. # Install (Bottle) python package.
- pip: name=flask - pip: name=bottle
# Install (flask) python package on version 0.8. # Install (Bottle) python package on version 0.11.
- pip: name=flask version=0.8 - pip: name=bottle version=0.11
# Install (MyApp) using one of the remote protocols (bzr+,hg+,git+,svn+) or tarballs (zip, gz, bz2) (pip) supports. You do not have to supply '-e' option in extra_args. For these source names, (use_mirrors) is ignored and not applicable. # Install (MyApp) using one of the remote protocols (bzr+,hg+,git+,svn+) or tarballs (zip, gz, bz2) (pip) supports. You do not have to supply '-e' option in extra_args. For these source names, (use_mirrors) is ignored and not applicable.
- pip: name='svn+http://myrepo/svn/MyApp#egg=MyApp' - pip: name='svn+http://myrepo/svn/MyApp#egg=MyApp'
# Install (Flask) into the specified (virtualenv), inheriting none of the globally installed modules # Install (Bottle) into the specified (virtualenv), inheriting none of the globally installed modules
- pip: name=flask virtualenv=/my_app/venv - pip: name=bottle virtualenv=/my_app/venv
# Install (Flask) into the specified (virtualenv), inheriting globally installed modules # Install (Bottle) into the specified (virtualenv), inheriting globally installed modules
- pip: name=flask virtualenv=/my_app/venv virtualenv_site_packages=yes - pip: name=bottle virtualenv=/my_app/venv virtualenv_site_packages=yes
# Install (Flask) into the specified (virtualenv), using Python 2.7 # Install (Bottle) into the specified (virtualenv), using Python 2.7
- pip: name=flask virtualenv=/my_app/venv virtualenv_command=virtualenv-2.7 - pip: name=bottle virtualenv=/my_app/venv virtualenv_command=virtualenv-2.7
# Install specified python requirements. # Install specified python requirements.
- pip: requirements=/my_app/requirements.txt - pip: requirements=/my_app/requirements.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment