ansible/docsite/rst/modules/easy_install.rst
2012-10-08 07:44:38 -04:00

1.6 KiB

easy_install

0.7

Installs Python libraries, optionally in a virtualenv

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
      


      Notes

      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.