forked from ISTI-ansible-roles/ansible-roles
library/roles/python-env: Install missing dev packages.
This commit is contained in:
parent
281e46ae7f
commit
b74d457663
|
@ -8,6 +8,10 @@ py_env_get_pip_url: https://bootstrap.pypa.io/get-pip.py
|
||||||
py_env_basic_pkgs:
|
py_env_basic_pkgs:
|
||||||
- python-pip
|
- python-pip
|
||||||
|
|
||||||
|
py_env_pip_dev_packages:
|
||||||
|
- libpython-dev
|
||||||
|
- libssl-dev
|
||||||
|
|
||||||
py_env_pip_fix_ssl_warnings:
|
py_env_pip_fix_ssl_warnings:
|
||||||
- pyOpenSSL
|
- pyOpenSSL
|
||||||
- cryptography
|
- cryptography
|
||||||
|
|
|
@ -41,6 +41,13 @@
|
||||||
shell: /usr/local/bin/python-pip-fixer
|
shell: /usr/local/bin/python-pip-fixer
|
||||||
when: ( python_pip_fixer | changed )
|
when: ( python_pip_fixer | changed )
|
||||||
|
|
||||||
|
- name: Install the python dev headers
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items: '{{ py_env_pip_dev_packages }}'
|
||||||
|
|
||||||
|
- name: Install the latest six python package
|
||||||
|
pip: name=six state=latest
|
||||||
|
|
||||||
- name: Fix the ssl warnings installing some ssl libraries
|
- name: Fix the ssl warnings installing some ssl libraries
|
||||||
pip: name={{ item }}
|
pip: name={{ item }}
|
||||||
with_items: '{{ py_env_pip_fix_ssl_warnings | default ([]) }}'
|
with_items: '{{ py_env_pip_fix_ssl_warnings | default ([]) }}'
|
||||||
|
|
Loading…
Reference in New Issue