Merge "Add ensure-python role"

This commit is contained in:
Zuul 2018-10-12 08:56:19 +00:00 committed by Gerrit Code Review
commit c195d514df
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,4 @@
- hosts: all
roles:
- ensure-tox
- ensure-python

View File

@ -0,0 +1,10 @@
Ensure specified python interpreter and development files are installed
.. note:: This role is only available for Debian based platforms
currently.
**Role Variables**
.. zuul:rolevar:: python_version
Optional version of python interpreter to install, such as ``3.7``.

View File

@ -0,0 +1,6 @@
- name: Install specified version of python interpreter and development files
when: python_version is defined
package:
name: python{{ python_version }}-dev
state: present
become: yes