Add name of the system pip package into defaults

On Amazon Linux, installing `python-pip` acutally installs the
`python26-pip` package, so anything running in Python 2.7 won't
find the dependencies installed with that `pip`.

This allows the package name to be customised, depending on the OS
and Python versions.
This commit is contained in:
grahamlyons 2017-11-14 12:28:48 +00:00
parent a9886af978
commit 4a2fd99b54
2 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,3 @@
---
pip_package_name: python-pip
pip_install_packages: []

View File

@ -1,6 +1,8 @@
---
- name: Ensure Pip is installed.
package: name=python-pip state=present
package:
name: "{{pip_package_name}}"
state: present
- name: Ensure pip_install_packages are installed.
pip: