2017-01-03 11:11:37 +01:00
|
|
|
---
|
2018-08-20 20:25:15 +02:00
|
|
|
|
2018-06-25 14:56:31 +02:00
|
|
|
- name: install python-pip and SNI support packages
|
2017-01-03 11:11:37 +01:00
|
|
|
package:
|
2019-07-01 20:52:19 +02:00
|
|
|
name:
|
|
|
|
- python-pip
|
|
|
|
- python-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libffi-dev
|
2017-01-03 11:11:37 +01:00
|
|
|
state: present
|
2018-06-25 14:56:31 +02:00
|
|
|
register: _install_python_packages
|
|
|
|
until: _install_python_packages is succeeded
|
2018-06-25 13:30:53 +02:00
|
|
|
retries: 5
|
|
|
|
delay: 2
|
2017-01-03 11:11:37 +01:00
|
|
|
|
|
|
|
# There extra pip dependencies are needed to add SSL SNI support to
|
|
|
|
# Python version prior to 2.7.9. SNI support is needed by the Ansible
|
|
|
|
# get_url module in server.yml and client.yml.
|
|
|
|
- name: install the Python SNI python-pip dependencies.
|
|
|
|
pip:
|
2019-07-01 20:52:19 +02:00
|
|
|
name:
|
|
|
|
- pyopenssl
|
|
|
|
- ndg-httpsclient
|
|
|
|
- pyasn1
|
2017-01-03 11:11:37 +01:00
|
|
|
state: present
|
2018-06-25 15:03:31 +02:00
|
|
|
register: _install_pip_packages
|
|
|
|
until: _install_pip_packages is succeeded
|
2018-06-25 13:30:53 +02:00
|
|
|
retries: 5
|
|
|
|
delay: 2
|