community / community.general / 1.3.14 / module / easy_install Installs Python libraries Authors: Matt Wright (@mattupstate)community.general.easy_install (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Installs Python libraries, optionally in a I(virtualenv)
- name: Install or update pip community.general.easy_install: name: pip state: latest
- name: Install Bottle into the specified virtualenv community.general.easy_install: name: bottle virtualenv: /webapps/myapp/venv
name: description: - A Python library name required: true type: str state: choices: - present - latest default: present description: - The desired state of the library. C(latest) ensures that the latest version is installed. type: str executable: default: easy_install 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. type: str virtualenv: description: - an optional I(virtualenv) directory path to install into. If the I(virtualenv) does not exist, it is created automatically type: str virtualenv_command: default: virtualenv description: - The command to create the virtual environment with. For example C(pyvenv), C(virtualenv), C(virtualenv2). type: str 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