pip
Collection: builtin
Full Name: parallax.builtin.pip
Aliases: ansible.builtin.pip, pip
Synopsis
Manage pip
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | list | Package names to install/uninstall | ||
| state | string | present | Desired package state Choices: present, absent, latest, forcereinstall | |
| version | string | Package version specifier | ||
| requirements | string | Path to a pip requirements file | ||
| virtualenv | string | Path to a virtualenv directory to install into | ||
| virtualenv_command | string | virtualenv | Command used to create the virtualenv | |
| virtualenv_python | string | Python executable used to create the virtualenv | ||
| virtualenv_site_packages | bool | false | Include system site-packages in the virtualenv | |
| extra_args | string | Extra arguments passed to pip | ||
| executable | string | pip | Pip executable to use | |
| editable | bool | false | Install packages in editable mode | |
| chdir | string | Change to this directory before running pip |
Example
- name: Example pip task
pip:
name: <your_name>
state: present