.. _easy_install: easy_install `````````````````````````````` .. versionadded:: 0.7 Installs Python libraries, optionally in a *virtualenv* .. raw:: html
parameter | required | default | choices | comments |
---|---|---|---|---|
virtualenv | no | an optional virtualenv directory path to install into. If the virtualenv does not exist, it is created automatically | ||
name | yes | A Python library name |
Examples from Ansible Playbooks
easy_install name=pip
Install Flask (http://flask.pocoo.org/) into the specified virtualenv
easy_install name=flask virtualenv=/webapps/myapp/venv
Please note that the easy_install module can only install Python libraries. Thus this module is not able to remove libraries. It is generally recommended to use the pip module which you can first install using easy_install.
Also note that virtualenv must be installed on the remote host if the virtualenv
parameter is specified.