community.general.easy_install module – Installs Python libraries
This module is part of the community.general collection (version 6.6.2).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.general.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify:
Installs Python libraries, optionally in a virtualenv
The below requirements are needed on the host that executes this module.
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
A Python library name
The desired state of the library.
an optional virtualenv directory path to install into. If the virtualenv does not exist, it is created automatically
The command to create the virtual environment with. For example
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.
Can run in
Will return details on what has changed (or possibly needs changing in
Please note that the
easy_installmodule can only install Python libraries. Thus this module is not able to remove libraries. It is generally recommended to use the ansible.builtin.pip module which you can first install using community.general.easy_install.
Also note that virtualenv must be installed on the remote host if the
virtualenvparameter is specified.
- name: Install or update pip
- name: Install Bottle into the specified virtualenv