PR #18 follow-up: Adjust docs for pip executable var.

This commit is contained in:
Jeff Geerling 2018-11-10 15:04:29 -06:00
parent 87179db548
commit b2ef2b4251
2 changed files with 5 additions and 5 deletions

View File

@ -16,13 +16,12 @@ Available variables are listed below, along with default values (see `defaults/m
The name of the packge to install to get `pip` on the system. You can set to `python3-pip`, for example, when using Python 3 on Ubuntu.
pip_executable: pip
The role will try to autodetect the pip executable based on the `pip_package` (e.g. `pip` for Python 2 and `pip3` for Python 3). You can also override this explicitly, e.g. `pip_executable: pip3.6`.
pip_install_packages: []
The role will try to autodetect pip executable: it will use `pip` for Python 2 and `pip3` for Python 3. You can also override this explicitly:
pip_executable: pip3.6
A list of packages to install with pip. Examples below:
pip_install_packages:

View File

@ -2,4 +2,5 @@
# For Python 3, use python3-pip.
pip_package: python-pip
pip_executable: "{{ 'pip3' if pip_package.startswith('python3') else 'pip' }}"
pip_install_packages: []