community / community.general / 0.1.1 / module / easy_install Installs Python libraries Authors: Matt Wright (@mattupstate) preview | supported by communitycommunity.general.easy_install (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Installs Python libraries, optionally in a I(virtualenv)
# Examples from Ansible Playbooks - easy_install: name: pip state: latest
# Install Bottle into the specified virtualenv. - easy_install: name: bottle virtualenv: /webapps/myapp/venv
name: description: - A Python library name required: true state: choices: - present - latest default: present description: - The desired state of the library. C(latest) ensures that the latest version is installed. executable: description: - The explicit executable or a pathname to the executable to be used to run easy_install for a specific version of Python installed in the system. For example C(easy_install-3.3), if there are both Python 2.7 and 3.3 installations in the system and you want to run easy_install for the Python 3.3 installation. virtualenv: description: - an optional I(virtualenv) directory path to install into. If the I(virtualenv) does not exist, it is created automatically virtualenv_command: default: virtualenv description: - The command to create the virtual environment with. For example C(pyvenv), C(virtualenv), C(virtualenv2). virtualenv_site_packages: default: 'no' description: - Whether the virtual environment will inherit packages from the global site-packages directory. Note that if this setting is changed on an already existing virtual environment it will not have any effect, the environment must be deleted and newly created. type: bool